Enum bonsaidb::core::actionable::Configuration
pub enum Configuration {
Unsigned(u64),
Signed(i64),
String(String),
}
Expand description
A configured value for a resource.
Variants§
Unsigned(u64)
An unsigned integer configuration value.
Signed(i64)
A signed integer configuration value.
String(String)
A string configuration value.
Implementations§
§impl Configuration
impl Configuration
Trait Implementations§
§impl Clone for Configuration
impl Clone for Configuration
§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 more§impl Debug for Configuration
impl Debug for Configuration
§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Configuration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Configuration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for Configuration
impl Display for Configuration
§impl<'a> From<&'a str> for Configuration
impl<'a> From<&'a str> for Configuration
§fn from(value: &'a str) -> Configuration
fn from(value: &'a str) -> Configuration
Converts to this type from the input type.
§impl From<String> for Configuration
impl From<String> for Configuration
§fn from(value: String) -> Configuration
fn from(value: String) -> Configuration
Converts to this type from the input type.
§impl From<i64> for Configuration
impl From<i64> for Configuration
§fn from(value: i64) -> Configuration
fn from(value: i64) -> Configuration
Converts to this type from the input type.
§impl From<u64> for Configuration
impl From<u64> for Configuration
§fn from(value: u64) -> Configuration
fn from(value: u64) -> Configuration
Converts to this type from the input type.
§impl Serialize for Configuration
impl Serialize for Configuration
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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