pub struct Metadata {
pub submitter_info: Option<SubmitterInfo>,
pub synchronizer_id: String,
pub mediator_group: u32,
pub transaction_uuid: String,
pub preparation_time: u64,
pub input_contracts: Vec<InputContract>,
pub min_ledger_effective_time: Option<u64>,
pub max_ledger_effective_time: Option<u64>,
pub max_record_time: Option<u64>,
pub global_key_mapping: Vec<GlobalKeyMappingEntry>,
}Expand description
Transaction Metadata Refer to the hashing documentation for information on how it should be hashed.
Fields§
§submitter_info: Option<SubmitterInfo>Required
synchronizer_id: StringRequired
mediator_group: u32Required
transaction_uuid: StringRequired
preparation_time: u64Required
input_contracts: Vec<InputContract>Not populated if the transaction has no input contracts
Optional: can be empty
min_ledger_effective_time: Option<u64>Optional
max_ledger_effective_time: Option<u64>Optional
max_record_time: Option<u64>Maximum timestamp at which the transaction can be recorded onto the ledger via the synchronizer synchronizer_id.
If submitted after it will be rejected even if otherwise valid, in which case it needs to be prepared and signed again
with a new valid max_record_time.
Set max_record_time in the PreparedTransactionRequest to get this field set accordingly
Optional
global_key_mapping: Vec<GlobalKeyMappingEntry>This fields is deprecated and will always be empty. Keys and associated contracts are already present and signed within the transaction nodes where they’re used
Optional: can be empty
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn min_ledger_effective_time(&self) -> u64
pub fn min_ledger_effective_time(&self) -> u64
Returns the value of min_ledger_effective_time, or the default value if min_ledger_effective_time is unset.
Sourcepub fn max_ledger_effective_time(&self) -> u64
pub fn max_ledger_effective_time(&self) -> u64
Returns the value of max_ledger_effective_time, or the default value if max_ledger_effective_time is unset.
Sourcepub fn max_record_time(&self) -> u64
pub fn max_record_time(&self) -> u64
Returns the value of max_record_time, or the default value if max_record_time is unset.
Trait Implementations§
Source§impl Message for Metadata
impl Message for Metadata
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.impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request