pub enum GetterResult {
Show 15 variants
Bool(bool),
String(String),
Int(Number<i64>),
Int32(Number<i32>),
SizeInBytes(Number<u64>),
Duration(Number<i64>),
Float64(GoFloat),
Float64Slice(Option<Vec<GoFloat>>),
StringSlice(Option<Vec<String>>),
StringMap(Option<BTreeMap<String, GoValue>>),
StringMapString(Option<BTreeMap<String, String>>),
StringMapStringSlice(BTreeMap<String, Option<Vec<String>>>),
Get(GoValue),
Section(BTreeMap<String, GoValue>),
IsConfigured(bool),
}Expand description
The recorded return value of an Agent configuration method, decoded into the matching Rust type.
Variants§
Bool(bool)
GetBool.
String(String)
GetString.
Int(Number<i64>)
GetInt and GetInt64.
Int32(Number<i32>)
GetInt32.
SizeInBytes(Number<u64>)
GetSizeInBytes.
Duration(Number<i64>)
GetDuration, in nanoseconds.
Float64(GoFloat)
GetFloat64.
Float64Slice(Option<Vec<GoFloat>>)
GetFloat64Slice; None for a nil slice.
StringSlice(Option<Vec<String>>)
GetStringSlice; None for a nil slice.
StringMap(Option<BTreeMap<String, GoValue>>)
GetStringMap; None for a nil map.
StringMapString(Option<BTreeMap<String, String>>)
GetStringMapString; None for a nil map.
StringMapStringSlice(BTreeMap<String, Option<Vec<String>>>)
GetStringMapStringSlice, which never returns a nil map; a None value is a nil slice.
Get(GoValue)
Get.
Section(BTreeMap<String, GoValue>)
ReadConfigSection (getter-map.md §2.1): the nested section map, never null.
IsConfigured(bool)
IsConfigured (getter-map.md §2.1): whether the user set the key.
Trait Implementations§
Source§impl Clone for GetterResult
impl Clone for GetterResult
Source§fn clone(&self) -> GetterResult
fn clone(&self) -> GetterResult
Returns a duplicate 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 moreSource§impl Debug for GetterResult
impl Debug for GetterResult
Source§impl PartialEq for GetterResult
impl PartialEq for GetterResult
impl StructuralPartialEq for GetterResult
Auto Trait Implementations§
impl Freeze for GetterResult
impl RefUnwindSafe for GetterResult
impl Send for GetterResult
impl Sync for GetterResult
impl Unpin for GetterResult
impl UnsafeUnpin for GetterResult
impl UnwindSafe for GetterResult
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