pub struct StructMetadata {
pub time: Option<i64>,
pub version: i32,
pub hash: Option<Hash>,
pub signable_hash: Option<Hash>,
pub signed_hash: Option<Hash>,
pub counter_party_hash: Option<Hash>,
pub confirmation_hash: Option<Hash>,
}Expand description
Information about the data type itself, such as time produced and hash representations of it
Fields§
§time: Option<i64>If present, represents some time related information that should be signed, typically transaction origination time
version: i32The version of the object, used for backwards / forward compatability and to determine which fields are present
hash: Option<Hash>The hash of the present object data, including all relevant fields, but excluding any enriched / hydrated data fields This can be any one of the below hash values, and reflects the current state of the object.
signable_hash: Option<Hash>The hash of the object data, excluding any witness information, object should be cleared of other fields or hydration related fields before signing. This is equivalent to the SegWit hash.
signed_hash: Option<Hash>The hash of the object after being signed once, this is the hash that includes the witness data / signature data. This is equivalent to the hash of a transaction containing witness data ala standard ETH transaction.
counter_party_hash: Option<Hash>The hash of the object after being signed twice, includes witness data from a counter-signature from an accepting party. Used for transaction contracts that require counter party acceptance
confirmation_hash: Option<Hash>The hash of the object after being signed three times, includes witness data from original signer, counter-signer accepting party, and a final signature from the original of the counter party hashed object.
Implementations§
Trait Implementations§
Source§impl Clone for StructMetadata
impl Clone for StructMetadata
Source§fn clone(&self) -> StructMetadata
fn clone(&self) -> StructMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StructMetadata
impl Debug for StructMetadata
Source§impl Default for StructMetadata
impl Default for StructMetadata
Source§impl<'de> Deserialize<'de> for StructMetadata
impl<'de> Deserialize<'de> for StructMetadata
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>,
Source§impl Hash for StructMetadata
impl Hash for StructMetadata
Source§impl HashClear for StructMetadata
impl HashClear for StructMetadata
fn hash_clear(&mut self)
Source§impl Message for StructMetadata
impl Message for StructMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for StructMetadata
impl PartialEq for StructMetadata
Source§impl Serialize for StructMetadata
impl Serialize for StructMetadata
impl Eq for StructMetadata
impl StructuralPartialEq for StructMetadata
Auto Trait Implementations§
impl Freeze for StructMetadata
impl RefUnwindSafe for StructMetadata
impl Send for StructMetadata
impl Sync for StructMetadata
impl Unpin for StructMetadata
impl UnwindSafe for StructMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> 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