pub struct Signees { /* private fields */ }Expand description
Holds an array of Signees
Implementations§
Source§impl Signees
§Signees
These structs are intended to make it simpler to sign transaction packets.
impl Signees
§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
Sourcepub fn add(&mut self, key: Key, streamid: &str) -> &mut Self
pub fn add(&mut self, key: Key, streamid: &str) -> &mut Self
§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.
Sourcepub fn add_selfsign(&mut self, key: Key) -> &mut Self
pub fn add_selfsign(&mut self, key: Key) -> &mut Self
§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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signees
impl RefUnwindSafe for Signees
impl Send for Signees
impl Sync for Signees
impl Unpin for Signees
impl UnwindSafe for Signees
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more