[][src]Struct transact::protos::transaction::Transaction

pub struct Transaction {
    pub header: Vec<u8>,
    pub header_signature: String,
    pub payload: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

header: Vec<u8>header_signature: Stringpayload: Vec<u8>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Transaction[src]

pub fn new() -> Transaction[src]

pub fn get_header(&self) -> &[u8][src]

pub fn clear_header(&mut self)[src]

pub fn set_header(&mut self, v: Vec<u8>)[src]

pub fn mut_header(&mut self) -> &mut Vec<u8>[src]

pub fn take_header(&mut self) -> Vec<u8>[src]

pub fn get_header_signature(&self) -> &str[src]

pub fn clear_header_signature(&mut self)[src]

pub fn set_header_signature(&mut self, v: String)[src]

pub fn mut_header_signature(&mut self) -> &mut String[src]

pub fn take_header_signature(&mut self) -> String[src]

pub fn get_payload(&self) -> &[u8][src]

pub fn clear_payload(&mut self)[src]

pub fn set_payload(&mut self, v: Vec<u8>)[src]

pub fn mut_payload(&mut self) -> &mut Vec<u8>[src]

pub fn take_payload(&mut self) -> Vec<u8>[src]

Trait Implementations

impl Clear for Transaction[src]

impl Clone for Transaction[src]

impl Debug for Transaction[src]

impl Default for Transaction[src]

impl<'a> Default for &'a Transaction[src]

impl FromNative<Transaction> for Transaction[src]

impl FromProto<Transaction> for Transaction[src]

impl IntoNative<Transaction> for Transaction[src]

impl IntoProto<Transaction> for Transaction[src]

impl Message for Transaction[src]

impl PartialEq<Transaction> for Transaction[src]

impl ProtobufValue for Transaction[src]

impl StructuralPartialEq for Transaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,