pub struct RuntimeTransaction {
pub version: u32,
pub signatures: Vec<Signature>,
pub message: ArchMessage,
}Fields§
§version: u32§signatures: Vec<Signature>§message: ArchMessageImplementations§
Source§impl RuntimeTransaction
impl RuntimeTransaction
pub fn txid(&self) -> Hash
pub fn serialize(&self) -> Vec<u8> ⓘ
pub fn serialize_with_size_limit( &self, ) -> Result<Vec<u8>, RuntimeTransactionError>
pub fn from_slice(data: &[u8]) -> Result<Self, RuntimeTransactionError>
pub fn hash(&self) -> Hash
pub fn check_tx_size_limit(&self) -> Result<(), RuntimeTransactionError>
Trait Implementations§
Source§impl BorshDeserialize for RuntimeTransaction
impl BorshDeserialize for RuntimeTransaction
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for RuntimeTransaction
impl BorshSerialize for RuntimeTransaction
Source§impl Clone for RuntimeTransaction
impl Clone for RuntimeTransaction
Source§fn clone(&self) -> RuntimeTransaction
fn clone(&self) -> RuntimeTransaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeTransaction
impl Debug for RuntimeTransaction
impl<'__de> Decode<'__de> for RuntimeTransactionwhere
'__de:,
Source§impl<'de> Deserialize<'de> for RuntimeTransaction
impl<'de> Deserialize<'de> for RuntimeTransaction
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 Display for RuntimeTransaction
impl Display for RuntimeTransaction
impl Encode for RuntimeTransaction
impl Eq for RuntimeTransaction
Source§impl Hash for RuntimeTransaction
impl Hash for RuntimeTransaction
Source§impl PartialEq for RuntimeTransaction
impl PartialEq for RuntimeTransaction
Source§impl Sanitize for RuntimeTransaction
impl Sanitize for RuntimeTransaction
Source§impl Serialize for RuntimeTransaction
impl Serialize for RuntimeTransaction
impl StructuralPartialEq for RuntimeTransaction
Auto Trait Implementations§
impl Freeze for RuntimeTransaction
impl RefUnwindSafe for RuntimeTransaction
impl Send for RuntimeTransaction
impl Sync for RuntimeTransaction
impl Unpin for RuntimeTransaction
impl UnsafeUnpin for RuntimeTransaction
impl UnwindSafe for RuntimeTransaction
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<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.