pub struct SecretPushContent {
pub name: SecretName,
pub secret: String,
/* private fields */
}Available on crate feature
experimental-push-secrets only.Expand description
The io.element.msc4385.secret.push event content.
Sent by a client to push a secret with another device. It must be encrypted
as an m.room.encrypted event, then sent as a to-device event.
Fields§
§name: SecretNameThe name of the secret.
secret: StringThe contents of the secret.
Implementations§
Trait Implementations§
Source§impl Clone for SecretPushContent
impl Clone for SecretPushContent
Source§fn clone(&self) -> SecretPushContent
fn clone(&self) -> SecretPushContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecretPushContent
Available on non-tarpaulin_include only.
impl Debug for SecretPushContent
Available on non-
tarpaulin_include only.Source§impl<'de> Deserialize<'de> for SecretPushContent
impl<'de> Deserialize<'de> for SecretPushContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for SecretPushContent
impl Drop for SecretPushContent
Source§impl EventType for SecretPushContent
impl EventType for SecretPushContent
Source§const EVENT_TYPE: &'static str = "io.element.msc4385.secret.push"
const EVENT_TYPE: &'static str = "io.element.msc4385.secret.push"
The event type of the event content.
Source§fn event_type(&self) -> &str
fn event_type(&self) -> &str
Get the event type of the event content. Read more
Source§impl From<SecretPushContent> for SecretsInboxItem
impl From<SecretPushContent> for SecretsInboxItem
Source§fn from(secret: SecretPushContent) -> Self
fn from(secret: SecretPushContent) -> Self
Converts to this type from the input type.
Source§impl Serialize for SecretPushContent
impl Serialize for SecretPushContent
Auto Trait Implementations§
impl Freeze for SecretPushContent
impl RefUnwindSafe for SecretPushContent
impl Send for SecretPushContent
impl Sync for SecretPushContent
impl Unpin for SecretPushContent
impl UnsafeUnpin for SecretPushContent
impl UnwindSafe for SecretPushContent
Blanket Implementations§
impl<T> AsyncTraitDeps for T
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§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
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read moreSource§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