pub struct VariationMeta { /* private fields */ }Expand description
Metadata describing a variation that partitions assignments.
Implementations§
Source§impl VariationMeta
impl VariationMeta
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Optional descriptive text for the variation.
Identifier of the user who created the variation.
Sourcepub fn locked_by_user_id(&self) -> Id
pub fn locked_by_user_id(&self) -> Id
Identifier of the user who locked the variation.
Sourcepub fn go_back_behavior(&self) -> i64
pub fn go_back_behavior(&self) -> i64
Behavior flag defining how lookups walk parent variations.
Sourcepub fn is_deprecated(&self) -> bool
pub fn is_deprecated(&self) -> bool
True when the variation is deprecated.
Sourcepub fn deprecated_by_user_id(&self) -> Id
pub fn deprecated_by_user_id(&self) -> Id
Identifier of the user who deprecated the variation.
Sourcepub fn created(&self) -> CCDBResult<DateTime<Utc>>
pub fn created(&self) -> CCDBResult<DateTime<Utc>>
Timestamp describing when the variation was created.
§Errors
Returns an error if the stored creation timestamp cannot be parsed as a UTC datetime.
Sourcepub fn modified(&self) -> CCDBResult<DateTime<Utc>>
pub fn modified(&self) -> CCDBResult<DateTime<Utc>>
Timestamp describing when the variation metadata was updated.
§Errors
Returns an error if the stored modification timestamp cannot be parsed as a UTC datetime.
Sourcepub fn lock_time(&self) -> CCDBResult<DateTime<Utc>>
pub fn lock_time(&self) -> CCDBResult<DateTime<Utc>>
Timestamp describing when the variation was locked.
§Errors
Returns an error if the stored lock timestamp cannot be parsed as a UTC datetime.
Sourcepub fn go_back_time(&self) -> CCDBResult<DateTime<Utc>>
pub fn go_back_time(&self) -> CCDBResult<DateTime<Utc>>
Timestamp describing when the go-back window expires.
§Errors
Returns an error if the stored go-back timestamp cannot be parsed as a UTC datetime.
Trait Implementations§
Source§impl Clone for VariationMeta
impl Clone for VariationMeta
Source§fn clone(&self) -> VariationMeta
fn clone(&self) -> VariationMeta
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VariationMeta
impl Debug for VariationMeta
Source§impl Default for VariationMeta
impl Default for VariationMeta
Source§fn default() -> VariationMeta
fn default() -> VariationMeta
Auto Trait Implementations§
impl Freeze for VariationMeta
impl RefUnwindSafe for VariationMeta
impl Send for VariationMeta
impl Sync for VariationMeta
impl Unpin for VariationMeta
impl UnwindSafe for VariationMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more