pub enum StateStoreDataValue {
SyncToken(String),
Filter(String),
UserAvatarUrl(String),
RecentlyVisitedRooms(Vec<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
RecentlyVisitedRooms(Vec<String>)
A list of recently visited room identifiers for the current user
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.
sourcepub fn into_recently_visited_rooms(self) -> Option<Vec<String>>
pub fn into_recently_visited_rooms(self) -> Option<Vec<String>>
Get this value if it is a list of recently visited rooms.
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§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
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>