[][src]Struct hycon_rust::serialization::tx::Tx

pub struct Tx {
    pub from: Vec<u8>,
    pub to: Vec<u8>,
    pub amount: u64,
    pub fee: u64,
    pub nonce: u32,
    // some fields omitted
}

Fields

from: Vec<u8>to: Vec<u8>amount: u64fee: u64nonce: u32

Methods

impl Tx[src]

pub fn new() -> Tx[src]

pub fn clear_from(&mut self)[src]

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

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

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

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

pub fn clear_to(&mut self)[src]

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

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

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

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

pub fn clear_amount(&mut self)[src]

pub fn set_amount(&mut self, v: u64)[src]

pub fn get_amount(&self) -> u64[src]

pub fn clear_fee(&mut self)[src]

pub fn set_fee(&mut self, v: u64)[src]

pub fn get_fee(&self) -> u64[src]

pub fn clear_nonce(&mut self)[src]

pub fn set_nonce(&mut self, v: u32)[src]

pub fn get_nonce(&self) -> u32[src]

Trait Implementations

impl Default for Tx[src]

impl Clone for Tx[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Tx> for Tx[src]

impl Debug for Tx[src]

impl Message for Tx[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>

Update this message object with fields read from given stream.

fn check_initialized(&self) -> Result<(), ProtobufError>

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

fn type_id(&self) -> TypeId

Get type id for downcasting.

impl Clear for Tx[src]

impl ProtobufValue for Tx[src]

fn as_any(&self) -> &(dyn Any + 'static)

fn is_non_zero(&self) -> bool

fn as_ref_copy(&self) -> ProtobufValueRef<'static>

Auto Trait Implementations

impl Send for Tx

impl Sync for Tx

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self