pub enum ProofVersion {
V0(AdvzNsProof),
V1(AvidMNsProof),
V1IncorrectEncoding(AvidMIncorrectEncodingNsProof),
V2(AvidmGf2NsProof),
}Variants§
V0(AdvzNsProof)
V1(AvidMNsProof)
V1IncorrectEncoding(AvidMIncorrectEncodingNsProof)
V2(AvidmGf2NsProof)
Implementations§
Source§impl ProofVersion
impl ProofVersion
Sourcepub fn merge(
field: &mut Option<ProofVersion>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<ProofVersion>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for ProofVersion
impl Clone for ProofVersion
Source§fn clone(&self) -> ProofVersion
fn clone(&self) -> ProofVersion
Returns a duplicate 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 ProofVersion
impl Debug for ProofVersion
Source§impl<'de> Deserialize<'de> for ProofVersion
impl<'de> Deserialize<'de> for ProofVersion
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 Hash for ProofVersion
impl Hash for ProofVersion
Source§impl JsonSchema for ProofVersion
impl JsonSchema for ProofVersion
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read more§fn always_inline_schema() -> bool
fn always_inline_schema() -> bool
👎Deprecated:
Use inline_schema() instead
Only included for backward-compatibility - use
inline_schema() instead“. Read moreSource§impl PartialEq for ProofVersion
impl PartialEq for ProofVersion
Source§impl Serialize for ProofVersion
impl Serialize for ProofVersion
impl Eq for ProofVersion
impl StructuralPartialEq for ProofVersion
Auto Trait Implementations§
impl Freeze for ProofVersion
impl RefUnwindSafe for ProofVersion
impl Send for ProofVersion
impl Sync for ProofVersion
impl Unpin for ProofVersion
impl UnsafeUnpin for ProofVersion
impl UnwindSafe for ProofVersion
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.