Enum bootstrap::config::StringOrBool
source · enum StringOrBool {
String(String),
Bool(bool),
}Variants§
Trait Implementations§
source§impl Debug for StringOrBool
impl Debug for StringOrBool
source§impl Default for StringOrBool
impl Default for StringOrBool
source§fn default() -> StringOrBool
fn default() -> StringOrBool
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StringOrBool
impl<'de> Deserialize<'de> for StringOrBool
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 RefUnwindSafe for StringOrBool
impl Send for StringOrBool
impl Sync for StringOrBool
impl Unpin for StringOrBool
impl UnwindSafe for StringOrBool
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:24 bytes
Size for each variant:
String: 24 bytesBool: 9 bytes