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 duplicate 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 for XvcParamFormat
impl PartialEq for XvcParamFormat
Source§impl PartialOrd for XvcParamFormat
impl PartialOrd for XvcParamFormat
Source§impl Serialize for XvcParamFormat
impl Serialize for XvcParamFormat
impl Copy for XvcParamFormat
impl Eq for XvcParamFormat
impl StructuralPartialEq for XvcParamFormat
Auto Trait Implementations§
impl Freeze for XvcParamFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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 Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more