Struct jwt_compact::jwk::RsaPrimeFactor
source · pub struct RsaPrimeFactor<'a> {
pub factor: SecretBytes<'a>,
pub crt_exponent: Option<SecretBytes<'a>>,
pub crt_coefficient: Option<SecretBytes<'a>>,
}
Expand description
Block for an additional prime factor in RsaPrivateParts
.
§Serialization
Fields of this struct are serialized using the big endian presentation
with the minimum necessary number of bytes. See JsonWebKey
notes
on encoding.
Fields§
§factor: SecretBytes<'a>
Prime factor (r
).
crt_exponent: Option<SecretBytes<'a>>
Factor CRT exponent (d
).
crt_coefficient: Option<SecretBytes<'a>>
Factor CRT coefficient (t
).
Trait Implementations§
source§impl<'a> Clone for RsaPrimeFactor<'a>
impl<'a> Clone for RsaPrimeFactor<'a>
source§fn clone(&self) -> RsaPrimeFactor<'a>
fn clone(&self) -> RsaPrimeFactor<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for RsaPrimeFactor<'a>
impl<'a> Debug for RsaPrimeFactor<'a>
source§impl<'de, 'a> Deserialize<'de> for RsaPrimeFactor<'a>
impl<'de, 'a> Deserialize<'de> for RsaPrimeFactor<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq for RsaPrimeFactor<'a>
impl<'a> PartialEq for RsaPrimeFactor<'a>
source§fn eq(&self, other: &RsaPrimeFactor<'a>) -> bool
fn eq(&self, other: &RsaPrimeFactor<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for RsaPrimeFactor<'a>
impl<'a> Serialize for RsaPrimeFactor<'a>
impl<'a> StructuralPartialEq for RsaPrimeFactor<'a>
Auto Trait Implementations§
impl<'a> Freeze for RsaPrimeFactor<'a>
impl<'a> RefUnwindSafe for RsaPrimeFactor<'a>
impl<'a> Send for RsaPrimeFactor<'a>
impl<'a> Sync for RsaPrimeFactor<'a>
impl<'a> Unpin for RsaPrimeFactor<'a>
impl<'a> UnwindSafe for RsaPrimeFactor<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)