pub struct Authorization<N: Network> { /* private fields */ }
Implementations§
source§impl<N: Network> Authorization<N>
impl<N: Network> Authorization<N>
source§impl<N: Network> Authorization<N>
impl<N: Network> Authorization<N>
sourcepub fn is_fee_private(&self) -> bool
pub fn is_fee_private(&self) -> bool
Returns true
if the authorization is for call to credits.aleo/fee_private
.
sourcepub fn is_fee_public(&self) -> bool
pub fn is_fee_public(&self) -> bool
Returns true
if the authorization is for call to credits.aleo/fee_public
.
source§impl<N: Network> Authorization<N>
impl<N: Network> Authorization<N>
sourcepub fn to_vec_deque(&self) -> VecDeque<Request<N>>
pub fn to_vec_deque(&self) -> VecDeque<Request<N>>
Returns the requests in the authorization.
source§impl<N: Network> Authorization<N>
impl<N: Network> Authorization<N>
sourcepub fn insert_transition(&self, transition: Transition<N>) -> Result<()>
pub fn insert_transition(&self, transition: Transition<N>) -> Result<()>
Inserts the given transition into the authorization.
sourcepub fn transitions(&self) -> IndexMap<N::TransitionID, Transition<N>>
pub fn transitions(&self) -> IndexMap<N::TransitionID, Transition<N>>
Returns the transitions in the authorization.
sourcepub fn to_execution_id(&self) -> Result<Field<N>>
pub fn to_execution_id(&self) -> Result<Field<N>>
Returns the execution ID for the authorization.
Trait Implementations§
source§impl<N: Clone + Network> Clone for Authorization<N>where
N::TransitionID: Clone,
impl<N: Clone + Network> Clone for Authorization<N>where N::TransitionID: Clone,
source§fn clone(&self) -> Authorization<N>
fn clone(&self) -> Authorization<N>
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<N: Network> Debug for Authorization<N>
impl<N: Network> Debug for Authorization<N>
source§impl<'de, N: Network> Deserialize<'de> for Authorization<N>
impl<'de, N: Network> Deserialize<'de> for Authorization<N>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the authorization from a string or bytes.
source§impl<N: Network> Display for Authorization<N>
impl<N: Network> Display for Authorization<N>
source§impl<N: Network> FromBytes for Authorization<N>
impl<N: Network> FromBytes for Authorization<N>
source§impl<N: Network> FromStr for Authorization<N>
impl<N: Network> FromStr for Authorization<N>
source§impl<N: Network> PartialEq for Authorization<N>
impl<N: Network> PartialEq for Authorization<N>
source§impl<N: Network> Serialize for Authorization<N>
impl<N: Network> Serialize for Authorization<N>
source§impl<N: Network> ToBytes for Authorization<N>
impl<N: Network> ToBytes for Authorization<N>
source§impl<N: Network> TryFrom<(Vec<Request<N>>, Vec<Transition<N>>)> for Authorization<N>
impl<N: Network> TryFrom<(Vec<Request<N>>, Vec<Transition<N>>)> for Authorization<N>
impl<N: Network> Eq for Authorization<N>
Auto Trait Implementations§
impl<N> !RefUnwindSafe for Authorization<N>
impl<N> Send for Authorization<N>
impl<N> Sync for Authorization<N>
impl<N> Unpin for Authorization<N>
impl<N> !UnwindSafe for Authorization<N>
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
source§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere T: DeserializeOwned,
fn take_from_value<D>( value: &mut Value, field: &str ) -> Result<T, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.