StateTransitionWitnessSigned

Trait StateTransitionWitnessSigned 

Source
pub trait StateTransitionWitnessSigned: Sized {
    // Required methods
    fn inputs(&self) -> &BTreeMap<PlatformAddress, (AddressNonce, Credits)>;
    fn inputs_mut(
        &mut self,
    ) -> &mut BTreeMap<PlatformAddress, (AddressNonce, Credits)>;
    fn set_inputs(
        &mut self,
        inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>,
    );
    fn witnesses(&self) -> &Vec<AddressWitness>;
    fn set_witnesses(&mut self, witnesses: Vec<AddressWitness>);
}

Required Methods§

Source

fn inputs(&self) -> &BTreeMap<PlatformAddress, (AddressNonce, Credits)>

Get inputs

Source

fn inputs_mut( &mut self, ) -> &mut BTreeMap<PlatformAddress, (AddressNonce, Credits)>

Get inputs as a mutable map

Source

fn set_inputs( &mut self, inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>, )

Set inputs

Source

fn witnesses(&self) -> &Vec<AddressWitness>

returns the witnesses as an array

Source

fn set_witnesses(&mut self, witnesses: Vec<AddressWitness>)

set new witnesses

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§