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>) -> ReviewSignaturesBlob
pub fn encode(&self) -> Result<Vec<u8>, ReviewSignatureError>
pub fn decode( bytes: &[u8], ) -> Result<ReviewSignaturesBlob, 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<ReviewSignaturesBlob, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReviewSignaturesBlob, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReviewSignaturesBlob
Source§impl PartialEq for ReviewSignaturesBlob
impl PartialEq for ReviewSignaturesBlob
Source§impl Serialize for ReviewSignaturesBlob
impl Serialize for ReviewSignaturesBlob
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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