Struct matrix_sdk_crypto::OwnUserIdentity[][src]

pub struct OwnUserIdentity { /* fields omitted */ }
Expand description

Struct representing a cross signing identity of a user.

This is the user identity of a user that isn’t our own. Other users will only contain a master key and a self signing key, meaning that only device signatures can be checked with this identity.

This struct wraps a read-only version of the struct and allows verifications to be requested to verify our own device with the user identity.

Implementations

Mark our user identity as verified.

This will mark the identity locally as verified and sign it with our own device.

Returns a signature upload request that needs to be sent out.

Send a verification request to our other devices.

Send a verification request to our other devices while specifying our supported methods.

Arguments

  • methods - The verification methods that we’re supporting.

Does our user identity trust our own device, i.e. have we signed our own device keys with our self-signing key.

Methods from Deref<Target = ReadOnlyOwnUserIdentity>

Get the user id of this identity.

Get the public master key of the identity.

Get the public self-signing key of the identity.

Get the public user-signing key of the identity.

Mark our identity as verified.

Check if our identity is verified.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.