pub struct LightClientStateUpdateCertificateV2 {
pub epoch: u64,
pub light_client_state: String,
pub next_stake_table_state: String,
pub signatures: Vec<StateSignatureTuple>,
pub auth_root: String,
}Expand description
Light client state update certificate V2
Fields§
§epoch: u64§light_client_state: StringTaggedBase64 “LIGHT_CLIENT_STATE~…”
next_stake_table_state: StringTaggedBase64 “STAKE_TABLE_STATE~…”
signatures: Vec<StateSignatureTuple>§auth_root: StringTaggedBase64 or plain base64
Trait Implementations§
Source§impl Clone for LightClientStateUpdateCertificateV2
impl Clone for LightClientStateUpdateCertificateV2
Source§fn clone(&self) -> LightClientStateUpdateCertificateV2
fn clone(&self) -> LightClientStateUpdateCertificateV2
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<'de> Deserialize<'de> for LightClientStateUpdateCertificateV2
impl<'de> Deserialize<'de> for LightClientStateUpdateCertificateV2
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 JsonSchema for LightClientStateUpdateCertificateV2
impl JsonSchema for LightClientStateUpdateCertificateV2
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 Message for LightClientStateUpdateCertificateV2
impl Message for LightClientStateUpdateCertificateV2
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for LightClientStateUpdateCertificateV2
impl PartialEq for LightClientStateUpdateCertificateV2
Source§fn eq(&self, other: &LightClientStateUpdateCertificateV2) -> bool
fn eq(&self, other: &LightClientStateUpdateCertificateV2) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LightClientStateUpdateCertificateV2
Auto Trait Implementations§
impl Freeze for LightClientStateUpdateCertificateV2
impl RefUnwindSafe for LightClientStateUpdateCertificateV2
impl Send for LightClientStateUpdateCertificateV2
impl Sync for LightClientStateUpdateCertificateV2
impl Unpin for LightClientStateUpdateCertificateV2
impl UnsafeUnpin for LightClientStateUpdateCertificateV2
impl UnwindSafe for LightClientStateUpdateCertificateV2
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