pub struct ManagedFileSpec {
pub rel_key: String,
pub local: PathBuf,
pub remote: String,
pub poll_interval_secs: Option<u64>,
pub push_url: Option<String>,
}Expand description
One remote-backed managed file declared by a RuleTarget::Managed
rule. A mod’s mod.json names the file (literal glob),
its local path, the URL whose body is the file content, an optional
push URL for game writes, and the auto-refresh cadence, the
proxy DLL’s generic managed-file engine consumes exactly this, with no
per-mod knowledge inside the DLL.
Fields§
§rel_key: StringThe rule’s rel_key (its literal glob, separators normalized to /);
the hooks compare case-insensitively.
local: PathBufAbsolute local path the redirect serves and the refresh engine
writes (relative rule targets already resolved against game_dir).
remote: StringURL whose HTTP-GET body IS the file content, already interpolated.
poll_interval_secs: Option<u64>Auto-refresh cadence in seconds once the file has been accessed;
None = no polling (refresh on access only).
push_url: Option<String>Where every game write of the file is POSTed to, already
interpolated; None = fetch-only (writes never uploaded).
Trait Implementations§
Source§impl Clone for ManagedFileSpec
impl Clone for ManagedFileSpec
Source§fn clone(&self) -> ManagedFileSpec
fn clone(&self) -> ManagedFileSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManagedFileSpec
impl Debug for ManagedFileSpec
Source§impl PartialEq for ManagedFileSpec
impl PartialEq for ManagedFileSpec
Source§fn eq(&self, other: &ManagedFileSpec) -> bool
fn eq(&self, other: &ManagedFileSpec) -> bool
self and other values to be equal, and is used by ==.