pub struct OwnUserIdentity { /* private fields */ }
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.

Converts to this type from the input type.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more