Struct ruma_common::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: StringKey type.
Must be oct.
key_ops: Vec<String>Key operations.
Must at least contain encrypt and decrypt.
alg: StringAlgorithm.
Must be A256CTR.
k: Base64<UrlSafe>The key, encoded as url-safe unpadded base64.
ext: boolExtractable.
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) -> Self
fn from(init: JsonWebKeyInit) -> Self
Converts to this type from the input type.