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,
}
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