pub struct ReviewSignaturesBlob {
pub format_version: u8,
pub signatures: Vec<ReviewSignature>,
}Fields§
§format_version: u8§signatures: Vec<ReviewSignature>Implementations§
Source§impl ReviewSignaturesBlob
impl ReviewSignaturesBlob
pub const FORMAT_VERSION: u8 = 1
pub fn new(signatures: Vec<ReviewSignature>) -> Self
pub fn encode(&self) -> Result<Vec<u8>, ReviewSignatureError>
pub fn decode(bytes: &[u8]) -> Result<Self, ReviewSignatureError>
pub fn validate(&self) -> Result<(), ReviewSignatureError>
Trait Implementations§
Source§impl Clone for ReviewSignaturesBlob
impl Clone for ReviewSignaturesBlob
Source§fn clone(&self) -> ReviewSignaturesBlob
fn clone(&self) -> ReviewSignaturesBlob
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReviewSignaturesBlob
impl Debug for ReviewSignaturesBlob
Source§impl<'de> Deserialize<'de> for ReviewSignaturesBlob
impl<'de> Deserialize<'de> for ReviewSignaturesBlob
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 PartialEq for ReviewSignaturesBlob
impl PartialEq for ReviewSignaturesBlob
Source§fn eq(&self, other: &ReviewSignaturesBlob) -> bool
fn eq(&self, other: &ReviewSignaturesBlob) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReviewSignaturesBlob
impl Serialize for ReviewSignaturesBlob
impl Eq for ReviewSignaturesBlob
impl StructuralPartialEq for ReviewSignaturesBlob
Auto Trait Implementations§
impl Freeze for ReviewSignaturesBlob
impl RefUnwindSafe for ReviewSignaturesBlob
impl Send for ReviewSignaturesBlob
impl Sync for ReviewSignaturesBlob
impl Unpin for ReviewSignaturesBlob
impl UnsafeUnpin for ReviewSignaturesBlob
impl UnwindSafe for ReviewSignaturesBlob
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