#[non_exhaustive]pub struct Checkpoint {
pub sequence_number: Option<u64>,
pub digest: Option<String>,
pub summary: Option<CheckpointSummary>,
pub signature: Option<ValidatorAggregatedSignature>,
pub contents: Option<CheckpointContents>,
pub transactions: Vec<ExecutedTransaction>,
pub objects: Option<ObjectSet>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.sequence_number: Option<u64>
The height of this checkpoint.
digest: Option<String>
The digest of this Checkpoint’s CheckpointSummary.
summary: Option<CheckpointSummary>
The CheckpointSummary
for this checkpoint.
signature: Option<ValidatorAggregatedSignature>
An aggregated quorum signature from the validator committee that certified this checkpoint.
contents: Option<CheckpointContents>
The CheckpointContents
for this checkpoint.
transactions: Vec<ExecutedTransaction>
List of transactions included in this checkpoint.
objects: Option<ObjectSet>
Set of objects either referenced as inputs or produced as outputs by transactions included in this checkpoint.
In order to benefit from deduplication of objects that
appear in multiple transactions in this checkpoint, objects
will only be present here and the transactions.objects
field will not be populated.
Implementations§
Source§impl Checkpoint
impl Checkpoint
pub const SEQUENCE_NUMBER_FIELD: &'static MessageField
pub const DIGEST_FIELD: &'static MessageField
pub const SUMMARY_FIELD: &'static MessageField
pub const SIGNATURE_FIELD: &'static MessageField
pub const CONTENTS_FIELD: &'static MessageField
pub const TRANSACTIONS_FIELD: &'static MessageField
pub const OBJECTS_FIELD: &'static MessageField
Source§impl Checkpoint
impl Checkpoint
pub fn path_builder() -> CheckpointFieldPathBuilder
Source§impl Checkpoint
impl Checkpoint
pub const fn const_default() -> Self
Sourcepub fn sequence_number_opt_mut(&mut self) -> Option<&mut u64>
pub fn sequence_number_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn sequence_number_mut(&mut self) -> &mut u64
pub fn sequence_number_mut(&mut self) -> &mut u64
Returns a mutable reference to sequence_number
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn sequence_number_opt(&self) -> Option<u64>
pub fn sequence_number_opt(&self) -> Option<u64>
Sourcepub fn set_sequence_number<T: Into<u64>>(&mut self, field: T)
pub fn set_sequence_number<T: Into<u64>>(&mut self, field: T)
Sets sequence_number
with the provided value.
Sourcepub fn with_sequence_number<T: Into<u64>>(self, field: T) -> Self
pub fn with_sequence_number<T: Into<u64>>(self, field: T) -> Self
Sets sequence_number
with the provided value.
Sourcepub fn digest_opt_mut(&mut self) -> Option<&mut String>
pub fn digest_opt_mut(&mut self) -> Option<&mut String>
Sourcepub fn digest_mut(&mut self) -> &mut String
pub fn digest_mut(&mut self) -> &mut String
Returns a mutable reference to digest
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn digest_opt(&self) -> Option<&str>
pub fn digest_opt(&self) -> Option<&str>
Sourcepub fn set_digest<T: Into<String>>(&mut self, field: T)
pub fn set_digest<T: Into<String>>(&mut self, field: T)
Sets digest
with the provided value.
Sourcepub fn with_digest<T: Into<String>>(self, field: T) -> Self
pub fn with_digest<T: Into<String>>(self, field: T) -> Self
Sets digest
with the provided value.
Sourcepub fn summary(&self) -> &CheckpointSummary
pub fn summary(&self) -> &CheckpointSummary
Returns the value of summary
, or the default value if summary
is unset.
Sourcepub fn summary_opt_mut(&mut self) -> Option<&mut CheckpointSummary>
pub fn summary_opt_mut(&mut self) -> Option<&mut CheckpointSummary>
Sourcepub fn summary_mut(&mut self) -> &mut CheckpointSummary
pub fn summary_mut(&mut self) -> &mut CheckpointSummary
Returns a mutable reference to summary
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn summary_opt(&self) -> Option<&CheckpointSummary>
pub fn summary_opt(&self) -> Option<&CheckpointSummary>
Sourcepub fn set_summary<T: Into<CheckpointSummary>>(&mut self, field: T)
pub fn set_summary<T: Into<CheckpointSummary>>(&mut self, field: T)
Sets summary
with the provided value.
Sourcepub fn with_summary<T: Into<CheckpointSummary>>(self, field: T) -> Self
pub fn with_summary<T: Into<CheckpointSummary>>(self, field: T) -> Self
Sets summary
with the provided value.
Sourcepub fn signature(&self) -> &ValidatorAggregatedSignature
pub fn signature(&self) -> &ValidatorAggregatedSignature
Returns the value of signature
, or the default value if signature
is unset.
Sourcepub fn signature_opt_mut(&mut self) -> Option<&mut ValidatorAggregatedSignature>
pub fn signature_opt_mut(&mut self) -> Option<&mut ValidatorAggregatedSignature>
Sourcepub fn signature_mut(&mut self) -> &mut ValidatorAggregatedSignature
pub fn signature_mut(&mut self) -> &mut ValidatorAggregatedSignature
Returns a mutable reference to signature
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn signature_opt(&self) -> Option<&ValidatorAggregatedSignature>
pub fn signature_opt(&self) -> Option<&ValidatorAggregatedSignature>
Sourcepub fn set_signature<T: Into<ValidatorAggregatedSignature>>(&mut self, field: T)
pub fn set_signature<T: Into<ValidatorAggregatedSignature>>(&mut self, field: T)
Sets signature
with the provided value.
Sourcepub fn with_signature<T: Into<ValidatorAggregatedSignature>>(
self,
field: T,
) -> Self
pub fn with_signature<T: Into<ValidatorAggregatedSignature>>( self, field: T, ) -> Self
Sets signature
with the provided value.
Sourcepub fn contents(&self) -> &CheckpointContents
pub fn contents(&self) -> &CheckpointContents
Returns the value of contents
, or the default value if contents
is unset.
Sourcepub fn contents_opt_mut(&mut self) -> Option<&mut CheckpointContents>
pub fn contents_opt_mut(&mut self) -> Option<&mut CheckpointContents>
Sourcepub fn contents_mut(&mut self) -> &mut CheckpointContents
pub fn contents_mut(&mut self) -> &mut CheckpointContents
Returns a mutable reference to contents
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn contents_opt(&self) -> Option<&CheckpointContents>
pub fn contents_opt(&self) -> Option<&CheckpointContents>
Sourcepub fn set_contents<T: Into<CheckpointContents>>(&mut self, field: T)
pub fn set_contents<T: Into<CheckpointContents>>(&mut self, field: T)
Sets contents
with the provided value.
Sourcepub fn with_contents<T: Into<CheckpointContents>>(self, field: T) -> Self
pub fn with_contents<T: Into<CheckpointContents>>(self, field: T) -> Self
Sets contents
with the provided value.
Sourcepub fn transactions(&self) -> &[ExecutedTransaction]
pub fn transactions(&self) -> &[ExecutedTransaction]
Returns the value of transactions
, or the default value if transactions
is unset.
Sourcepub fn transactions_mut(&mut self) -> &mut Vec<ExecutedTransaction>
pub fn transactions_mut(&mut self) -> &mut Vec<ExecutedTransaction>
Returns a mutable reference to transactions
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn set_transactions(&mut self, field: Vec<ExecutedTransaction>)
pub fn set_transactions(&mut self, field: Vec<ExecutedTransaction>)
Sets transactions
with the provided value.
Sourcepub fn with_transactions(self, field: Vec<ExecutedTransaction>) -> Self
pub fn with_transactions(self, field: Vec<ExecutedTransaction>) -> Self
Sets transactions
with the provided value.
Sourcepub fn objects(&self) -> &ObjectSet
pub fn objects(&self) -> &ObjectSet
Returns the value of objects
, or the default value if objects
is unset.
Sourcepub fn objects_opt_mut(&mut self) -> Option<&mut ObjectSet>
pub fn objects_opt_mut(&mut self) -> Option<&mut ObjectSet>
Sourcepub fn objects_mut(&mut self) -> &mut ObjectSet
pub fn objects_mut(&mut self) -> &mut ObjectSet
Returns a mutable reference to objects
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn objects_opt(&self) -> Option<&ObjectSet>
pub fn objects_opt(&self) -> Option<&ObjectSet>
Sourcepub fn set_objects<T: Into<ObjectSet>>(&mut self, field: T)
pub fn set_objects<T: Into<ObjectSet>>(&mut self, field: T)
Sets objects
with the provided value.
Sourcepub fn with_objects<T: Into<ObjectSet>>(self, field: T) -> Self
pub fn with_objects<T: Into<ObjectSet>>(self, field: T) -> Self
Sets objects
with the provided value.
Source§impl Checkpoint
impl Checkpoint
Trait Implementations§
Source§impl Clone for Checkpoint
impl Clone for Checkpoint
Source§fn clone(&self) -> Checkpoint
fn clone(&self) -> Checkpoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Checkpoint
impl Debug for Checkpoint
Source§impl Default for Checkpoint
impl Default for Checkpoint
§impl<'de> Deserialize<'de> for Checkpoint
impl<'de> Deserialize<'de> for Checkpoint
§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>,
Source§impl Merge<&Checkpoint> for Checkpoint
impl Merge<&Checkpoint> for Checkpoint
fn merge(&mut self, source: &Checkpoint, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Merge<&CheckpointSummary> for Checkpoint
impl Merge<&CheckpointSummary> for Checkpoint
fn merge(&mut self, source: &CheckpointSummary, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Merge<CheckpointContents> for Checkpoint
impl Merge<CheckpointContents> for Checkpoint
fn merge(&mut self, source: CheckpointContents, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Merge<ValidatorAggregatedSignature> for Checkpoint
impl Merge<ValidatorAggregatedSignature> for Checkpoint
fn merge(&mut self, source: ValidatorAggregatedSignature, mask: &FieldMaskTree)
fn merge_from(source: T, mask: &FieldMaskTree) -> Selfwhere
Self: Default,
Source§impl Message for Checkpoint
impl Message for Checkpoint
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.Source§impl MessageFields for Checkpoint
impl MessageFields for Checkpoint
const FIELDS: &'static [&'static MessageField]
Source§impl PartialEq for Checkpoint
impl PartialEq for Checkpoint
§impl Serialize for Checkpoint
impl Serialize for Checkpoint
impl StructuralPartialEq for Checkpoint
Auto Trait Implementations§
impl !Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnwindSafe for Checkpoint
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered
].§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.