pub struct SignatureMessage { /* private fields */ }Implementations§
Source§impl SignatureMessage
impl SignatureMessage
pub fn new( ciphersuite: &Ciphersuite, namespace: String, timestamp: u64, epoch: &Epoch, digest: Vec<u8>, ) -> Result<Self, PlexiError>
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 to_vec(&self) -> Result<Vec<u8>, PlexiError>
Trait Implementations§
Source§impl<'__de> BorrowDecode<'__de> for SignatureMessage
impl<'__de> BorrowDecode<'__de> for SignatureMessage
Source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for SignatureMessage
impl Clone for SignatureMessage
Source§fn clone(&self) -> SignatureMessage
fn clone(&self) -> SignatureMessage
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 SignatureMessage
impl Debug for SignatureMessage
Source§impl Decode for SignatureMessage
impl Decode for SignatureMessage
Source§impl<'de> Deserialize<'de> for SignatureMessage
impl<'de> Deserialize<'de> for SignatureMessage
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 Display for SignatureMessage
impl Display for SignatureMessage
Source§impl Encode for SignatureMessage
impl Encode for SignatureMessage
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 Serialize for SignatureMessage
impl Serialize for SignatureMessage
Auto Trait Implementations§
impl Freeze for SignatureMessage
impl RefUnwindSafe for SignatureMessage
impl Send for SignatureMessage
impl Sync for SignatureMessage
impl Unpin for SignatureMessage
impl UnwindSafe for SignatureMessage
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