pub struct FlagMetadata {
pub values: HashMap<String, FlagMetadataValue>,
}
Expand description
A structure which supports definition of arbitrary properties, with keys of type string, and values of type boolean, string, or number.
This structure is populated by a provider for use by an Application Author (via the Evaluation API) or an Application Integrator (via hooks).
Fields§
§values: HashMap<String, FlagMetadataValue>
The fields of the metadata.
Implementations§
Source§impl FlagMetadata
impl FlagMetadata
Sourcepub fn with_value(
self,
key: impl Into<String>,
value: impl Into<FlagMetadataValue>,
) -> Self
pub fn with_value( self, key: impl Into<String>, value: impl Into<FlagMetadataValue>, ) -> Self
Append givne key
and value
to the fields of metadata.
Trait Implementations§
Source§impl Clone for FlagMetadata
impl Clone for FlagMetadata
Source§fn clone(&self) -> FlagMetadata
fn clone(&self) -> FlagMetadata
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 FlagMetadata
impl Debug for FlagMetadata
Source§impl Default for FlagMetadata
impl Default for FlagMetadata
Source§fn default() -> FlagMetadata
fn default() -> FlagMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for FlagMetadata
impl PartialEq for FlagMetadata
impl StructuralPartialEq for FlagMetadata
Auto Trait Implementations§
impl Freeze for FlagMetadata
impl RefUnwindSafe for FlagMetadata
impl Send for FlagMetadata
impl Sync for FlagMetadata
impl Unpin for FlagMetadata
impl UnwindSafe for FlagMetadata
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