pub struct GrowthBookAttribute {
pub key: String,
pub value: GrowthBookAttributeValue,
}
Fields§
§key: String
§value: GrowthBookAttributeValue
Implementations§
Source§impl GrowthBookAttribute
impl GrowthBookAttribute
pub fn new(key: String, value: GrowthBookAttributeValue) -> Self
pub fn from(value: Value) -> Result<Vec<Self>, GrowthbookError>
Trait Implementations§
Source§impl Clone for GrowthBookAttribute
impl Clone for GrowthBookAttribute
Source§fn clone(&self) -> GrowthBookAttribute
fn clone(&self) -> GrowthBookAttribute
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 GrowthBookAttribute
impl Debug for GrowthBookAttribute
Source§impl PartialEq for GrowthBookAttribute
impl PartialEq for GrowthBookAttribute
impl StructuralPartialEq for GrowthBookAttribute
Auto Trait Implementations§
impl Freeze for GrowthBookAttribute
impl RefUnwindSafe for GrowthBookAttribute
impl Send for GrowthBookAttribute
impl Sync for GrowthBookAttribute
impl Unpin for GrowthBookAttribute
impl UnwindSafe for GrowthBookAttribute
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