[−][src]Struct active_tx::Signees
Holds an array of Signees
Methods
impl Signees
[src]
Signees
These structs are intended to make it simpler to sign transaction packets.
The Signees object holds a vector of Signee's, the Signee object contains the streamid and key. Note: The streamid could also be the key name for a selfsign transaction e.g onboarding.
It is recommended that the macro signees! is used to generate these structures. To see example usage the macro please see its relevant documentation here
pub fn new() -> Signees
[src]
New
This method generates a new Signees struct
pub fn add(&mut self, key: Key, streamid: &str) -> &mut Self
[src]
Add
This method is the general add method. It takes a key and a stream id, the stream id must match one provided in the input ($i) of the transaction packet.
pub fn add_selfsign(&mut self, key: Key) -> &mut Self
[src]
Selfsign
This method is use for transactions that will be selfsigned. Instead of storing a related stream id it will use the keys name. This must still have a corresponding match in the input of the transaction packet.
pub fn get(&self) -> Vec<Signee>
[src]
Get
This method returns a vector of Signee structs. The Signee struct contains the streamid and key given via the .add() (or add_selfsign) method above.
Trait Implementations
Auto Trait Implementations
impl Send for Signees
impl Sync for Signees
impl Unpin for Signees
impl UnwindSafe for Signees
impl RefUnwindSafe for Signees
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,