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)
Expect file to be part of this bundle
Tuple Fields of Bundled
0: PathBuf
Path(PathBuf)
Get file from local filesystem (not bundled)
Tuple Fields of Path
0: PathBuf
Url(String)
Get file from URL
Tuple Fields of Url
0: String
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.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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