Enum actionable::Configuration
source · [−]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
sourceimpl Configuration
impl Configuration
sourcepub fn to_signed(&self) -> Option<i64>
pub fn to_signed(&self) -> Option<i64>
Evaluates the contents of this configuration as a signed integer. Returns None if unable to convert safely.
sourcepub fn to_unsigned(&self) -> Option<u64>
pub fn to_unsigned(&self) -> Option<u64>
Evaluates the contents of this configuration as an unsigned integer. Returns None if unable to convert safely.
Trait Implementations
sourceimpl Clone for Configuration
impl Clone for Configuration
sourcefn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Configuration
impl Debug for Configuration
sourceimpl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
sourcefn 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
sourceimpl Display for Configuration
impl Display for Configuration
sourceimpl<'a> From<&'a str> for Configuration
impl<'a> From<&'a str> for Configuration
sourceimpl From<String> for Configuration
impl From<String> for Configuration
sourceimpl Serialize for Configuration
impl Serialize for Configuration
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more