pub enum StateStoreDataValue {
SyncToken(String),
ServerCapabilities(ServerCapabilities),
Filter(String),
UserAvatarUrl(OwnedMxcUri),
RecentlyVisitedRooms(Vec<OwnedRoomId>),
UtdHookManagerData(GrowableBloom),
ComposerDraft(ComposerDraft),
}
Expand description
A value for key-value data that should be persisted into the store.
Variants§
SyncToken(String)
The sync token.
ServerCapabilities(ServerCapabilities)
The server capabilities.
Filter(String)
A filter with the given ID.
UserAvatarUrl(OwnedMxcUri)
The user avatar url
RecentlyVisitedRooms(Vec<OwnedRoomId>)
A list of recently visited room identifiers for the current user
UtdHookManagerData(GrowableBloom)
Persistent data for
matrix_sdk_ui::unable_to_decrypt_hook::UtdHookManager
.
ComposerDraft(ComposerDraft)
A composer draft for the room.
To learn more, see ComposerDraft
.
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<OwnedMxcUri>
pub fn into_user_avatar_url(self) -> Option<OwnedMxcUri>
Get this value if it is a user avatar url.
sourcepub fn into_recently_visited_rooms(self) -> Option<Vec<OwnedRoomId>>
pub fn into_recently_visited_rooms(self) -> Option<Vec<OwnedRoomId>>
Get this value if it is a list of recently visited rooms.
sourcepub fn into_utd_hook_manager_data(self) -> Option<GrowableBloom>
pub fn into_utd_hook_manager_data(self) -> Option<GrowableBloom>
Get this value if it is the data for the UtdHookManager
.
sourcepub fn into_composer_draft(self) -> Option<ComposerDraft>
pub fn into_composer_draft(self) -> Option<ComposerDraft>
Get this value if it is a composer draft.
sourcepub fn into_server_capabilities(self) -> Option<ServerCapabilities>
pub fn into_server_capabilities(self) -> Option<ServerCapabilities>
Get this value if it is the server capabilities metadata.
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 Freeze for StateStoreDataValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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