pub struct SignatureResponse { /* private fields */ }Implementations§
Source§impl SignatureResponse
impl SignatureResponse
pub fn new( version: &Ciphersuite, ciphersuite: &Ciphersuite, namespace: String, timestamp: u64, epoch: &Epoch, digest: Vec<u8>, signature: Vec<u8>, key_id: Option<u8>, serialized_message: Option<Vec<u8>>, ) -> Self
pub fn version(&self) -> &Ciphersuite
pub fn ciphersuite(&self) -> &Ciphersuite
pub fn namespace(&self) -> &str
pub fn timestamp(&self) -> u64
pub fn epoch(&self) -> &Epoch
pub fn digest(&self) -> Vec<u8>
pub fn signature(&self) -> [u8; 64]
pub fn key_id(&self) -> Option<u8>
pub fn serialized_message(&self) -> Option<Vec<u8>>
pub fn verify(&self, verifying_key: &[u8]) -> Result<()>
Trait Implementations§
Source§impl Clone for SignatureResponse
impl Clone for SignatureResponse
Source§fn clone(&self) -> SignatureResponse
fn clone(&self) -> SignatureResponse
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 Debug for SignatureResponse
impl Debug for SignatureResponse
Source§impl<'de> Deserialize<'de> for SignatureResponse
impl<'de> Deserialize<'de> for SignatureResponse
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 From<&SignatureResponse> for SignatureMessage
impl From<&SignatureResponse> for SignatureMessage
Source§fn from(val: &SignatureResponse) -> Self
fn from(val: &SignatureResponse) -> Self
Converts to this type from the input type.
Source§impl From<SignatureResponse> for SignatureMessage
impl From<SignatureResponse> for SignatureMessage
Source§fn from(val: SignatureResponse) -> Self
fn from(val: SignatureResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SignatureResponse
impl PartialEq for SignatureResponse
Source§impl Serialize for SignatureResponse
impl Serialize for SignatureResponse
Source§impl<'__s> ToSchema<'__s> for SignatureResponse
impl<'__s> ToSchema<'__s> for SignatureResponse
impl StructuralPartialEq for SignatureResponse
Auto Trait Implementations§
impl Freeze for SignatureResponse
impl RefUnwindSafe for SignatureResponse
impl Send for SignatureResponse
impl Sync for SignatureResponse
impl Unpin for SignatureResponse
impl UnwindSafe for SignatureResponse
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