Struct open_feature::FlagMetadata
source · 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 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 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
source§fn eq(&self, other: &FlagMetadata) -> bool
fn eq(&self, other: &FlagMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FlagMetadata
Auto Trait Implementations§
impl RefUnwindSafe for FlagMetadata
impl Send for FlagMetadata
impl Sync for FlagMetadata
impl Unpin for FlagMetadata
impl UnwindSafe for FlagMetadata
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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