Struct noah_api::xfr::XfrNotePolicies
source · pub struct XfrNotePolicies {
pub valid: bool,
pub inputs_tracing_policies: Vec<TracingPolicies>,
pub inputs_sig_commitments: Vec<Option<ACCommitment>>,
pub outputs_tracing_policies: Vec<TracingPolicies>,
pub outputs_sig_commitments: Vec<Option<ACCommitment>>,
}Expand description
Tracing policies for an asset record.
Fields§
§valid: boolWhether the structure is valid and has policies.
inputs_tracing_policies: Vec<TracingPolicies>The tracing policies
inputs_sig_commitments: Vec<Option<ACCommitment>>The attribute commitments for each input.
outputs_tracing_policies: Vec<TracingPolicies>The tracing policies for each output.
outputs_sig_commitments: Vec<Option<ACCommitment>>The attribute commitments for each output.
Implementations§
source§impl XfrNotePolicies
impl XfrNotePolicies
sourcepub fn new(
inputs_tracing_policies: Vec<TracingPolicies>,
inputs_sig_commitments: Vec<Option<ACCommitment>>,
outputs_tracing_policies: Vec<TracingPolicies>,
outputs_sig_commitments: Vec<Option<ACCommitment>>
) -> XfrNotePolicies
pub fn new(
inputs_tracing_policies: Vec<TracingPolicies>,
inputs_sig_commitments: Vec<Option<ACCommitment>>,
outputs_tracing_policies: Vec<TracingPolicies>,
outputs_sig_commitments: Vec<Option<ACCommitment>>
) -> XfrNotePolicies
Create a structure of policies.
sourcepub fn empty_policies(num_inputs: usize, num_outputs: usize) -> XfrNotePolicies
pub fn empty_policies(num_inputs: usize, num_outputs: usize) -> XfrNotePolicies
Return empty policies for the given numbers of inputs and outputs.
sourcepub fn to_ref(&self) -> XfrNotePoliciesRef<'_>
pub fn to_ref(&self) -> XfrNotePoliciesRef<'_>
Obtain a reference of the policies.
Trait Implementations§
source§impl Clone for XfrNotePolicies
impl Clone for XfrNotePolicies
source§fn clone(&self) -> XfrNotePolicies
fn clone(&self) -> XfrNotePolicies
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 XfrNotePolicies
impl Debug for XfrNotePolicies
source§impl Default for XfrNotePolicies
impl Default for XfrNotePolicies
source§fn default() -> XfrNotePolicies
fn default() -> XfrNotePolicies
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for XfrNotePolicies
impl<'de> Deserialize<'de> for XfrNotePolicies
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 PartialEq<XfrNotePolicies> for XfrNotePolicies
impl PartialEq<XfrNotePolicies> for XfrNotePolicies
source§fn eq(&self, other: &XfrNotePolicies) -> bool
fn eq(&self, other: &XfrNotePolicies) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for XfrNotePolicies
impl Serialize for XfrNotePolicies
impl Eq for XfrNotePolicies
impl StructuralEq for XfrNotePolicies
impl StructuralPartialEq for XfrNotePolicies
Auto Trait Implementations§
impl RefUnwindSafe for XfrNotePolicies
impl Send for XfrNotePolicies
impl Sync for XfrNotePolicies
impl Unpin for XfrNotePolicies
impl UnwindSafe for XfrNotePolicies
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