[][src]Struct iota_client::AttachOptions

pub struct AttachOptions<'a, 'b> {
    pub threads: usize,
    pub trunk_transaction: &'a str,
    pub branch_transaction: &'b str,
    pub min_weight_magnitude: usize,
    pub trytes: Vec<String>,
}

Struct used to provide named arguments for the attach functions

Fields

threads: usize

Number of threads to use for proof of work

trunk_transaction: &'a str

Trunk transaction encoded as a tryte string

branch_transaction: &'b str

Branch transaction encoded as a tryte string

min_weight_magnitude: usize

Difficulty factor to use for proof of work

trytes: Vec<String>

Trytes to attach to tangle

Trait Implementations

impl<'a, 'b> Clone for AttachOptions<'a, 'b>[src]

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

Performs copy-assignment from source. Read more

impl<'a, 'b> Default for AttachOptions<'a, 'b>[src]

Provides sane defaults for the fields

  • threads - Number of CPUs
  • trunk_transaction - Empty string
  • branch_transaction - Empty string
  • min_weight_magnitude - 14
  • trytes - Empty vector

impl<'a, 'b> Debug for AttachOptions<'a, 'b>[src]

Auto Trait Implementations

impl<'a, 'b> Send for AttachOptions<'a, 'b>

impl<'a, 'b> Sync for AttachOptions<'a, 'b>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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