Enum bootstrap::config::StringOrInt
source · enum StringOrInt<'a> {
String(&'a str),
Int(i64),
}
Variants§
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for StringOrInt<'a>
impl<'de: 'a, 'a> Deserialize<'de> for StringOrInt<'a>
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
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StringOrInt<'a>
impl<'a> Send for StringOrInt<'a>
impl<'a> Sync for StringOrInt<'a>
impl<'a> Unpin for StringOrInt<'a>
impl<'a> UnwindSafe for StringOrInt<'a>
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<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
String
: 16 bytesInt
: 16 bytes