pub struct MlsPendingMessagePrimaryKey { /* private fields */ }Expand description
MlsPendingMessages have no distinct primary key;
they must always be accessed via MlsPendingMessage::find_all_by_conversation_id and
cleaned up with MlsPendingMessage::delete_by_conversation_id
However, we have to fake a primary key type in order to support
KeystoreTransaction::remove_pending_messages_by_conversation_id. Additionally we need the same one in WASM, where
it’s necessary for item-level encryption.
This implementation is fairly inefficient and hopefully temporary. But it at least implements the correct semantics.
Trait Implementations§
Source§impl Drop for MlsPendingMessagePrimaryKey
impl Drop for MlsPendingMessagePrimaryKey
Source§impl From<&MlsPendingMessage> for MlsPendingMessagePrimaryKey
impl From<&MlsPendingMessage> for MlsPendingMessagePrimaryKey
Source§fn from(value: &MlsPendingMessage) -> Self
fn from(value: &MlsPendingMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MlsPendingMessagePrimaryKey
impl RefUnwindSafe for MlsPendingMessagePrimaryKey
impl Send for MlsPendingMessagePrimaryKey
impl Sync for MlsPendingMessagePrimaryKey
impl Unpin for MlsPendingMessagePrimaryKey
impl UnwindSafe for MlsPendingMessagePrimaryKey
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> 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