Enum xvc_pipeline::deps::param::XvcParamFormat
source · pub enum XvcParamFormat {
Unknown,
YAML,
JSON,
TOML,
}Expand description
Parsable formats of a parameter file
Variants§
Unknown
The default value if we cannot infer the format somehow
YAML
Yaml files are parsed with serde_yaml
JSON
Json files are parsed with serde_json
TOML
Toml files are parsed with toml
Implementations§
Trait Implementations§
source§impl Clone for XvcParamFormat
impl Clone for XvcParamFormat
source§fn clone(&self) -> XvcParamFormat
fn clone(&self) -> XvcParamFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for XvcParamFormat
impl Debug for XvcParamFormat
source§impl<'de> Deserialize<'de> for XvcParamFormat
impl<'de> Deserialize<'de> for XvcParamFormat
source§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
source§impl Ord for XvcParamFormat
impl Ord for XvcParamFormat
source§fn cmp(&self, other: &XvcParamFormat) -> Ordering
fn cmp(&self, other: &XvcParamFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<XvcParamFormat> for XvcParamFormat
impl PartialEq<XvcParamFormat> for XvcParamFormat
source§fn eq(&self, other: &XvcParamFormat) -> bool
fn eq(&self, other: &XvcParamFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<XvcParamFormat> for XvcParamFormat
impl PartialOrd<XvcParamFormat> for XvcParamFormat
source§fn partial_cmp(&self, other: &XvcParamFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &XvcParamFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for XvcParamFormat
impl Serialize for XvcParamFormat
impl Copy for XvcParamFormat
impl Eq for XvcParamFormat
impl StructuralEq for XvcParamFormat
impl StructuralPartialEq for XvcParamFormat
Auto Trait Implementations§
impl RefUnwindSafe for XvcParamFormat
impl Send for XvcParamFormat
impl Sync for XvcParamFormat
impl Unpin for XvcParamFormat
impl UnwindSafe for XvcParamFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.