pub enum StateStoreDataValue {
SyncToken(String),
Filter(String),
UserAvatarUrl(String),
}
Expand description
A value for key-value data that should be persisted into the store.
Variants§
SyncToken(String)
The sync token.
Filter(String)
A filter with the given ID.
UserAvatarUrl(String)
The user avatar url
Implementations§
source§impl StateStoreDataValue
impl StateStoreDataValue
sourcepub fn into_sync_token(self) -> Option<String>
pub fn into_sync_token(self) -> Option<String>
Get this value if it is a sync token.
sourcepub fn into_filter(self) -> Option<String>
pub fn into_filter(self) -> Option<String>
Get this value if it is a filter.
sourcepub fn into_user_avatar_url(self) -> Option<String>
pub fn into_user_avatar_url(self) -> Option<String>
Get this value if it is a user avatar url.
Trait Implementations§
source§impl Clone for StateStoreDataValue
impl Clone for StateStoreDataValue
source§fn clone(&self) -> StateStoreDataValue
fn clone(&self) -> StateStoreDataValue
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 moreAuto Trait Implementations§
impl RefUnwindSafe for StateStoreDataValue
impl Send for StateStoreDataValue
impl Sync for StateStoreDataValue
impl Unpin for StateStoreDataValue
impl UnwindSafe for StateStoreDataValue
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