Struct snarkvm_dpc::transition::response::Response
source · [−]pub struct Response<N: Network> { /* private fields */ }
Implementations
sourceimpl<N: Network> Response<N>
impl<N: Network> Response<N>
sourcepub fn new(
transition_id: N::TransitionID,
records: Vec<Record<N>>,
encryption_randomness: Vec<EncryptionRandomness<N>>,
value_balance: AleoAmount,
events: Vec<Event<N>>
) -> Result<Self>
pub fn new(
transition_id: N::TransitionID,
records: Vec<Record<N>>,
encryption_randomness: Vec<EncryptionRandomness<N>>,
value_balance: AleoAmount,
events: Vec<Event<N>>
) -> Result<Self>
Returns a new instance of a response.
sourcepub fn transition_id(&self) -> N::TransitionID
pub fn transition_id(&self) -> N::TransitionID
Returns the transition ID.
sourcepub fn commitments(&self) -> Vec<N::Commitment>
pub fn commitments(&self) -> Vec<N::Commitment>
Returns the commitments.
sourcepub fn ciphertexts(&self) -> Vec<N::RecordCiphertext>
pub fn ciphertexts(&self) -> Vec<N::RecordCiphertext>
Returns the ciphertexts.
sourcepub fn encryption_randomness(&self) -> &Vec<EncryptionRandomness<N>>
pub fn encryption_randomness(&self) -> &Vec<EncryptionRandomness<N>>
Returns a reference to the encryption randomness.
sourcepub fn value_balance(&self) -> AleoAmount
pub fn value_balance(&self) -> AleoAmount
Returns the value balance.
Trait Implementations
Auto Trait Implementations
impl<N> RefUnwindSafe for Response<N> where
N: RefUnwindSafe,
<N as Network>::FunctionID: RefUnwindSafe,
<N as Network>::ProgramAffineCurve: RefUnwindSafe,
<N as Network>::ProgramID: RefUnwindSafe,
<N as Network>::RecordCiphertext: RefUnwindSafe,
<N as Network>::RecordViewKey: RefUnwindSafe,
<<N as Network>::AccountEncryptionScheme as EncryptionScheme>::ScalarRandomness: RefUnwindSafe,
<N as Network>::TransitionID: RefUnwindSafe,
impl<N> Send for Response<N> where
<<N as Network>::AccountEncryptionScheme as EncryptionScheme>::ScalarRandomness: Send,
impl<N> Sync for Response<N> where
<<N as Network>::AccountEncryptionScheme as EncryptionScheme>::ScalarRandomness: Sync,
impl<N> Unpin for Response<N> where
N: Unpin,
<N as Network>::FunctionID: Unpin,
<N as Network>::ProgramAffineCurve: Unpin,
<N as Network>::ProgramID: Unpin,
<N as Network>::RecordCiphertext: Unpin,
<N as Network>::RecordViewKey: Unpin,
<<N as Network>::AccountEncryptionScheme as EncryptionScheme>::ScalarRandomness: Unpin,
<N as Network>::TransitionID: Unpin,
impl<N> UnwindSafe for Response<N> where
N: UnwindSafe,
<N as Network>::FunctionID: UnwindSafe,
<N as Network>::ProgramAffineCurve: UnwindSafe,
<N as Network>::ProgramID: UnwindSafe,
<N as Network>::RecordCiphertext: UnwindSafe,
<N as Network>::RecordViewKey: UnwindSafe,
<<N as Network>::AccountEncryptionScheme as EncryptionScheme>::ScalarRandomness: UnwindSafe,
<N as Network>::TransitionID: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more