Struct ruma::events::room::JsonWebKeyInit
source · pub struct JsonWebKeyInit {
pub kty: String,
pub key_ops: Vec<String>,
pub alg: String,
pub k: Base64<UrlSafe>,
pub ext: bool,
}
Available on crate feature
events
only.Expand description
Initial set of fields of JsonWebKey
.
This struct will not be updated even if additional fields are added to JsonWebKey
in a new
(non-breaking) release of the Matrix specification.
Fields§
§kty: String
Key type.
Must be oct
.
key_ops: Vec<String>
Key operations.
Must at least contain encrypt
and decrypt
.
alg: String
Algorithm.
Must be A256CTR
.
k: Base64<UrlSafe>
The key, encoded as url-safe unpadded base64.
ext: bool
Extractable.
Must be true
. This is a
W3C extension.
Trait Implementations§
source§impl Debug for JsonWebKeyInit
impl Debug for JsonWebKeyInit
source§impl From<JsonWebKeyInit> for JsonWebKey
impl From<JsonWebKeyInit> for JsonWebKey
source§fn from(init: JsonWebKeyInit) -> JsonWebKey
fn from(init: JsonWebKeyInit) -> JsonWebKey
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonWebKeyInit
impl RefUnwindSafe for JsonWebKeyInit
impl Send for JsonWebKeyInit
impl Sync for JsonWebKeyInit
impl Unpin for JsonWebKeyInit
impl UnwindSafe for JsonWebKeyInit
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, 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