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§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