pub struct AvailableRandomizationUnits {
pub user_id: Option<String>,
pub nimbus_id: Option<String>,
}
Fields§
§user_id: Option<String>
§nimbus_id: Option<String>
Implementations§
source§impl AvailableRandomizationUnits
impl AvailableRandomizationUnits
pub fn with_user_id(user_id: &str) -> Self
pub fn with_nimbus_id(nimbus_id: &Uuid) -> Self
pub fn apply_nimbus_id(&self, nimbus_id: &Uuid) -> Self
pub fn get_value<'a>(&'a self, wanted: &'a RandomizationUnit) -> Option<&'a str>
Trait Implementations§
source§impl Default for AvailableRandomizationUnits
impl Default for AvailableRandomizationUnits
source§fn default() -> AvailableRandomizationUnits
fn default() -> AvailableRandomizationUnits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AvailableRandomizationUnits
impl RefUnwindSafe for AvailableRandomizationUnits
impl Send for AvailableRandomizationUnits
impl Sync for AvailableRandomizationUnits
impl Unpin for AvailableRandomizationUnits
impl UnwindSafe for AvailableRandomizationUnits
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more