Enum matrix_sdk_base::store::StateStoreDataKey
source · pub enum StateStoreDataKey<'a> {
SyncToken,
Filter(&'a str),
UserAvatarUrl(&'a UserId),
}
Expand description
A key for key-value data.
Variants§
SyncToken
The sync token.
Filter(&'a str)
A filter with the given name.
UserAvatarUrl(&'a UserId)
Avatar URL
Implementations§
source§impl StateStoreDataKey<'_>
impl StateStoreDataKey<'_>
sourcepub const SYNC_TOKEN: &'static str = "sync_token"
pub const SYNC_TOKEN: &'static str = "sync_token"
Key to use for the SyncToken
variant.
sourcepub const USER_AVATAR_URL: &'static str = "user_avatar_url"
pub const USER_AVATAR_URL: &'static str = "user_avatar_url"
Key prefix to use for the UserAvatarUrl
variant.
Trait Implementations§
source§impl<'a> Clone for StateStoreDataKey<'a>
impl<'a> Clone for StateStoreDataKey<'a>
source§fn clone(&self) -> StateStoreDataKey<'a>
fn clone(&self) -> StateStoreDataKey<'a>
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 moresource§impl<'a> Debug for StateStoreDataKey<'a>
impl<'a> Debug for StateStoreDataKey<'a>
impl<'a> Copy for StateStoreDataKey<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StateStoreDataKey<'a>
impl<'a> Send for StateStoreDataKey<'a>
impl<'a> Sync for StateStoreDataKey<'a>
impl<'a> Unpin for StateStoreDataKey<'a>
impl<'a> UnwindSafe for StateStoreDataKey<'a>
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