Enum mr_bundle::Location [−][src]
Expand description
Where to find a Resource.
This representation, with named fields, is chosen so that in the yaml config either “path”, “url”, or “bundled” can be specified due to this field being flattened.
Variants
Bundled(PathBuf)
Tuple Fields
0: PathBuf
Expect file to be part of this bundle
Path(PathBuf)
Tuple Fields
0: PathBuf
Get file from local filesystem (not bundled)
Url(String)
Tuple Fields
0: String
Get file from URL
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Location
impl UnwindSafe for Location
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more