Struct unleash_api_client::client::Variant
source · pub struct Variant {
pub name: String,
pub payload: HashMap<String, String>,
pub enabled: bool,
}
Expand description
Variant is returned from Client.get_variant
and is a cut down and
ergonomic version of api.get_variant
Fields§
§name: String
§payload: HashMap<String, String>
§enabled: bool
Trait Implementations§
source§impl From<&CachedVariant> for Variant
impl From<&CachedVariant> for Variant
source§fn from(variant: &CachedVariant) -> Self
fn from(variant: &CachedVariant) -> Self
Converts to this type from the input type.
source§impl PartialEq for Variant
impl PartialEq for Variant
impl Eq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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