Struct pink_utils::attestation::Generator
source · Expand description
An attestation generator
Fields
privkey: Vec<u8>Implementations
Trait Implementations
sourceimpl Decode for Generator
impl Decode for Generator
sourcefn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.
sourcefn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
sourcefn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
sourceimpl Encode for Generator
impl Encode for Generator
sourcefn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.
sourcefn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
sourceimpl PackedLayout for Generator
impl PackedLayout for Generator
sourcefn pull_packed(&mut self, __key: &Key)
fn pull_packed(&mut self, __key: &Key)
Indicates to
self that is has just been pulled from the storage. Read moresourcefn push_packed(&self, __key: &Key)
fn push_packed(&self, __key: &Key)
Indicates to
self that it is about to be pushed to contract storage. Read moresourcefn clear_packed(&self, __key: &Key)
fn clear_packed(&self, __key: &Key)
Indicates to
self that it is about to be cleared from contract storage. Read moresourceimpl SpreadAllocate for Generator
impl SpreadAllocate for Generator
sourcefn allocate_spread(__key_ptr: &mut KeyPtr) -> Self
fn allocate_spread(__key_ptr: &mut KeyPtr) -> Self
Default initializes the implementing type using spread layout. Read more
sourceimpl SpreadLayout for Generator
impl SpreadLayout for Generator
sourceconst REQUIRES_DEEP_CLEAN_UP: bool = false
const REQUIRES_DEEP_CLEAN_UP: bool = false
Indicates whether a type requires deep clean-up of its state meaning that
a clean-up routine has to decode an entity into an instance in order to
eventually recurse upon its tear-down.
This is not required for the majority of primitive data types such as
i32,
however types such as storage::Box that might want to forward the clean-up
procedure to their inner T require a deep clean-up. Read moresourcefn pull_spread(__key_ptr: &mut KeyPtr) -> Self
fn pull_spread(__key_ptr: &mut KeyPtr) -> Self
Pulls an instance of
Self from the contract storage. Read moresourcefn push_spread(&self, __key_ptr: &mut KeyPtr)
fn push_spread(&self, __key_ptr: &mut KeyPtr)
Pushes an instance of
Self to the contract storage. Read moresourcefn clear_spread(&self, __key_ptr: &mut KeyPtr)
fn clear_spread(&self, __key_ptr: &mut KeyPtr)
Clears an instance of
Self from the contract storage. Read moresourceimpl StorageLayout for Generator
impl StorageLayout for Generator
impl EncodeLike<Generator> for Generator
Auto Trait Implementations
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more