Struct race_api::random::LockedCiphertext
source · pub struct LockedCiphertext {
pub locks: Vec<Lock>,
pub owner: CipherOwner,
pub ciphertext: Ciphertext,
}Expand description
The representation of a ciphertext with locks applied. If all the required locks are applied, then it’s ready.
Fields§
§locks: Vec<Lock>§owner: CipherOwner§ciphertext: CiphertextImplementations§
source§impl LockedCiphertext
impl LockedCiphertext
pub fn new(text: Ciphertext) -> Self
pub fn ciphertext(&self) -> &Ciphertext
Trait Implementations§
source§impl BorshDeserialize for LockedCiphertextwhere
Vec<Lock>: BorshDeserialize,
CipherOwner: BorshDeserialize,
Ciphertext: BorshDeserialize,
impl BorshDeserialize for LockedCiphertextwhere Vec<Lock>: BorshDeserialize, CipherOwner: BorshDeserialize, Ciphertext: BorshDeserialize,
source§impl BorshSerialize for LockedCiphertextwhere
Vec<Lock>: BorshSerialize,
CipherOwner: BorshSerialize,
Ciphertext: BorshSerialize,
impl BorshSerialize for LockedCiphertextwhere Vec<Lock>: BorshSerialize, CipherOwner: BorshSerialize, Ciphertext: BorshSerialize,
source§impl Clone for LockedCiphertext
impl Clone for LockedCiphertext
source§fn clone(&self) -> LockedCiphertext
fn clone(&self) -> LockedCiphertext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LockedCiphertext
impl Debug for LockedCiphertext
source§impl Default for LockedCiphertext
impl Default for LockedCiphertext
source§fn default() -> LockedCiphertext
fn default() -> LockedCiphertext
Returns the “default value” for a type. Read more
source§impl PartialEq for LockedCiphertext
impl PartialEq for LockedCiphertext
source§fn eq(&self, other: &LockedCiphertext) -> bool
fn eq(&self, other: &LockedCiphertext) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for LockedCiphertext
impl StructuralEq for LockedCiphertext
impl StructuralPartialEq for LockedCiphertext
Auto Trait Implementations§
impl RefUnwindSafe for LockedCiphertext
impl Send for LockedCiphertext
impl Sync for LockedCiphertext
impl Unpin for LockedCiphertext
impl UnwindSafe for LockedCiphertext
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
Mutably borrows from an owned value. Read more