Struct noah_api::anon_xfr::structs::AnonAssetRecord
source · pub struct AnonAssetRecord {
pub commitment: BLSScalar,
}Expand description
Asset record to be put as leaves on the tree.
Fields§
§commitment: BLSScalarThe commitment.
Implementations§
source§impl AnonAssetRecord
impl AnonAssetRecord
sourcepub fn from_oabar(oabar: &OpenAnonAssetRecord) -> AnonAssetRecord
pub fn from_oabar(oabar: &OpenAnonAssetRecord) -> AnonAssetRecord
Generate the anonymous asset record from the opened version.
Trait Implementations§
source§impl Clone for AnonAssetRecord
impl Clone for AnonAssetRecord
source§fn clone(&self) -> AnonAssetRecord
fn clone(&self) -> AnonAssetRecord
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 AnonAssetRecord
impl Debug for AnonAssetRecord
source§impl Default for AnonAssetRecord
impl Default for AnonAssetRecord
source§fn default() -> AnonAssetRecord
fn default() -> AnonAssetRecord
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AnonAssetRecord
impl<'de> Deserialize<'de> for AnonAssetRecord
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<AnonAssetRecord> for JsValue
impl From<AnonAssetRecord> for JsValue
source§fn from(value: AnonAssetRecord) -> Self
fn from(value: AnonAssetRecord) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for AnonAssetRecord
impl FromWasmAbi for AnonAssetRecord
source§impl IntoWasmAbi for AnonAssetRecord
impl IntoWasmAbi for AnonAssetRecord
source§impl OptionFromWasmAbi for AnonAssetRecord
impl OptionFromWasmAbi for AnonAssetRecord
source§impl OptionIntoWasmAbi for AnonAssetRecord
impl OptionIntoWasmAbi for AnonAssetRecord
source§impl PartialEq<AnonAssetRecord> for AnonAssetRecord
impl PartialEq<AnonAssetRecord> for AnonAssetRecord
source§fn eq(&self, other: &AnonAssetRecord) -> bool
fn eq(&self, other: &AnonAssetRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl RefFromWasmAbi for AnonAssetRecord
impl RefFromWasmAbi for AnonAssetRecord
§type Anchor = Ref<'static, AnonAssetRecord>
type Anchor = Ref<'static, AnonAssetRecord>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for AnonAssetRecord
impl RefMutFromWasmAbi for AnonAssetRecord
source§impl Serialize for AnonAssetRecord
impl Serialize for AnonAssetRecord
impl Eq for AnonAssetRecord
impl StructuralEq for AnonAssetRecord
impl StructuralPartialEq for AnonAssetRecord
Auto Trait Implementations§
impl RefUnwindSafe for AnonAssetRecord
impl Send for AnonAssetRecord
impl Sync for AnonAssetRecord
impl Unpin for AnonAssetRecord
impl UnwindSafe for AnonAssetRecord
Blanket Implementations§
§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<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.