Struct noah_api::xfr::structs::TracingPolicies
source · pub struct TracingPolicies(pub Vec<TracingPolicy>);Expand description
Asset and identity tracing policies for an asset.
Tuple Fields§
§0: Vec<TracingPolicy>Implementations§
source§impl TracingPolicies
impl TracingPolicies
sourcepub fn from_policy(policy: TracingPolicy) -> Self
pub fn from_policy(policy: TracingPolicy) -> Self
Construct from the first policy.
sourcepub fn add(&mut self, policy: TracingPolicy)
pub fn add(&mut self, policy: TracingPolicy)
Append a policy to the list.
sourcepub fn get_policy(&self, index: usize) -> Option<&TracingPolicy>
pub fn get_policy(&self, index: usize) -> Option<&TracingPolicy>
Obtain a specific policy.
sourcepub fn get_policies(&self) -> &[TracingPolicy]
pub fn get_policies(&self) -> &[TracingPolicy]
Return a reference of the policies.
Trait Implementations§
source§impl Clone for TracingPolicies
impl Clone for TracingPolicies
source§fn clone(&self) -> TracingPolicies
fn clone(&self) -> TracingPolicies
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 TracingPolicies
impl Debug for TracingPolicies
source§impl Default for TracingPolicies
impl Default for TracingPolicies
source§fn default() -> TracingPolicies
fn default() -> TracingPolicies
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TracingPolicies
impl<'de> Deserialize<'de> for TracingPolicies
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<TracingPolicies> for TracingPolicies
impl PartialEq<TracingPolicies> for TracingPolicies
source§fn eq(&self, other: &TracingPolicies) -> bool
fn eq(&self, other: &TracingPolicies) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TracingPolicies
impl Serialize for TracingPolicies
impl Eq for TracingPolicies
impl StructuralEq for TracingPolicies
impl StructuralPartialEq for TracingPolicies
Auto Trait Implementations§
impl RefUnwindSafe for TracingPolicies
impl Send for TracingPolicies
impl Sync for TracingPolicies
impl Unpin for TracingPolicies
impl UnwindSafe for TracingPolicies
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