pub enum IntOrFormatString {
Int(i64),
FormatString(FormatString),
}Expand description
An integer value or a format string (e.g. {{Param.ChunkSize}}).
Accepts:
- YAML integer →
IntOrFormatString::Int(n) - String that parses as i64 →
IntOrFormatString::Int(n) - String containing
{{…}}→IntOrFormatString::FormatString(fs) - Boolean/null → error
Variants§
Int(i64)
FormatString(FormatString)
Implementations§
Trait Implementations§
Source§impl Clone for IntOrFormatString
impl Clone for IntOrFormatString
Source§fn clone(&self) -> IntOrFormatString
fn clone(&self) -> IntOrFormatString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IntOrFormatString
impl Debug for IntOrFormatString
Source§impl<'de> Deserialize<'de> for IntOrFormatString
impl<'de> Deserialize<'de> for IntOrFormatString
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IntOrFormatString
impl RefUnwindSafe for IntOrFormatString
impl Send for IntOrFormatString
impl Sync for IntOrFormatString
impl Unpin for IntOrFormatString
impl UnsafeUnpin for IntOrFormatString
impl UnwindSafe for IntOrFormatString
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<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