pub struct AggregatedDidDetailsRequestParams { /* private fields */ }
Expand description
Information requested for DID. The default option includes only basic DID details.
Implementations§
§impl AggregatedDidDetailsRequestParams
impl AggregatedDidDetailsRequestParams
pub const BASIC: AggregatedDidDetailsRequestParams = Self{ bits: 0,}
pub const BASIC: AggregatedDidDetailsRequestParams = Self{ bits: 0,}
Just basic DID details.
pub const KEYS: AggregatedDidDetailsRequestParams = Self{ bits: 1,}
pub const KEYS: AggregatedDidDetailsRequestParams = Self{ bits: 1,}
Include keys for the DID.
pub const CONTROLLERS: AggregatedDidDetailsRequestParams = Self{ bits: 2,}
pub const CONTROLLERS: AggregatedDidDetailsRequestParams = Self{ bits: 2,}
Include controllers for the DID.
pub const SERVICE_ENDPOINTS: AggregatedDidDetailsRequestParams = Self{ bits: 4,}
pub const SERVICE_ENDPOINTS: AggregatedDidDetailsRequestParams = Self{ bits: 4,}
Include service endpoints for the DID.
pub const ATTESTATION: AggregatedDidDetailsRequestParams = Self{ bits: 8,}
pub const ATTESTATION: AggregatedDidDetailsRequestParams = Self{ bits: 8,}
Include attestation for the DID.
pub const FULL: AggregatedDidDetailsRequestParams = Self{ bits: 15,}
pub const FULL: AggregatedDidDetailsRequestParams = Self{ bits: 15,}
Include full DID information (keys, controllers, service endpoints and attestation).
pub const fn empty() -> AggregatedDidDetailsRequestParams
pub const fn empty() -> AggregatedDidDetailsRequestParams
Returns an empty set of flags.
pub const fn all() -> AggregatedDidDetailsRequestParams
pub const fn all() -> AggregatedDidDetailsRequestParams
Returns the set containing all flags.
pub const fn from_bits(bits: u8) -> Option<AggregatedDidDetailsRequestParams>
pub const fn from_bits(bits: u8) -> Option<AggregatedDidDetailsRequestParams>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u8) -> AggregatedDidDetailsRequestParams
pub const fn from_bits_truncate(bits: u8) -> AggregatedDidDetailsRequestParams
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(
bits: u8
) -> AggregatedDidDetailsRequestParams
pub const unsafe fn from_bits_unchecked( bits: u8 ) -> AggregatedDidDetailsRequestParams
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Safety
The caller of the bitflags!
macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked()
has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
pub const fn intersects(&self, other: AggregatedDidDetailsRequestParams) -> bool
pub const fn intersects(&self, other: AggregatedDidDetailsRequestParams) -> bool
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: AggregatedDidDetailsRequestParams) -> bool
pub const fn contains(&self, other: AggregatedDidDetailsRequestParams) -> bool
Returns true
if all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: AggregatedDidDetailsRequestParams)
pub fn insert(&mut self, other: AggregatedDidDetailsRequestParams)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: AggregatedDidDetailsRequestParams)
pub fn remove(&mut self, other: AggregatedDidDetailsRequestParams)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: AggregatedDidDetailsRequestParams)
pub fn toggle(&mut self, other: AggregatedDidDetailsRequestParams)
Toggles the specified flags in-place.
pub fn set(&mut self, other: AggregatedDidDetailsRequestParams, value: bool)
pub fn set(&mut self, other: AggregatedDidDetailsRequestParams, value: bool)
Inserts or removes the specified flags depending on the passed value.
pub const fn intersection(
self,
other: AggregatedDidDetailsRequestParams
) -> AggregatedDidDetailsRequestParams
pub const fn intersection( self, other: AggregatedDidDetailsRequestParams ) -> AggregatedDidDetailsRequestParams
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
pub const fn union(
self,
other: AggregatedDidDetailsRequestParams
) -> AggregatedDidDetailsRequestParams
pub const fn union( self, other: AggregatedDidDetailsRequestParams ) -> AggregatedDidDetailsRequestParams
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both (see Self::symmetric_difference
if that
is undesirable).
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
pub const fn difference(
self,
other: AggregatedDidDetailsRequestParams
) -> AggregatedDidDetailsRequestParams
pub const fn difference( self, other: AggregatedDidDetailsRequestParams ) -> AggregatedDidDetailsRequestParams
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
pub const fn symmetric_difference(
self,
other: AggregatedDidDetailsRequestParams
) -> AggregatedDidDetailsRequestParams
pub const fn symmetric_difference( self, other: AggregatedDidDetailsRequestParams ) -> AggregatedDidDetailsRequestParams
Returns the symmetric difference between the flags
in self
and other
.
Specifically, the returned set contains the flags present which
are present in self
or other
, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self
and other
.
This is equivalent to using the ^
operator (e.g.
ops::BitXor
), as in flags ^ other
.
pub const fn complement(self) -> AggregatedDidDetailsRequestParams
pub const fn complement(self) -> AggregatedDidDetailsRequestParams
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self
, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all()
and self
(e.g. Self::all() - self
)
This is equivalent to using the !
operator (e.g.
ops::Not
), as in !flags
.
Trait Implementations§
§impl Binary for AggregatedDidDetailsRequestParams
impl Binary for AggregatedDidDetailsRequestParams
§impl BitAnd<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl BitAnd<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn bitand(
self,
other: AggregatedDidDetailsRequestParams
) -> AggregatedDidDetailsRequestParams
fn bitand( self, other: AggregatedDidDetailsRequestParams ) -> AggregatedDidDetailsRequestParams
Returns the intersection between the two sets of flags.
§type Output = AggregatedDidDetailsRequestParams
type Output = AggregatedDidDetailsRequestParams
&
operator.§impl BitAndAssign<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl BitAndAssign<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn bitand_assign(&mut self, other: AggregatedDidDetailsRequestParams)
fn bitand_assign(&mut self, other: AggregatedDidDetailsRequestParams)
Disables all flags disabled in the set.
§impl BitOr<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl BitOr<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn bitor(
self,
other: AggregatedDidDetailsRequestParams
) -> AggregatedDidDetailsRequestParams
fn bitor( self, other: AggregatedDidDetailsRequestParams ) -> AggregatedDidDetailsRequestParams
Returns the union of the two sets of flags.
§type Output = AggregatedDidDetailsRequestParams
type Output = AggregatedDidDetailsRequestParams
|
operator.§impl BitOrAssign<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl BitOrAssign<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn bitor_assign(&mut self, other: AggregatedDidDetailsRequestParams)
fn bitor_assign(&mut self, other: AggregatedDidDetailsRequestParams)
Adds the set of flags.
§impl BitXor<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl BitXor<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn bitxor(
self,
other: AggregatedDidDetailsRequestParams
) -> AggregatedDidDetailsRequestParams
fn bitxor( self, other: AggregatedDidDetailsRequestParams ) -> AggregatedDidDetailsRequestParams
Returns the left flags, but with all the right flags toggled.
§type Output = AggregatedDidDetailsRequestParams
type Output = AggregatedDidDetailsRequestParams
^
operator.§impl BitXorAssign<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl BitXorAssign<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn bitxor_assign(&mut self, other: AggregatedDidDetailsRequestParams)
fn bitxor_assign(&mut self, other: AggregatedDidDetailsRequestParams)
Toggles the set of flags.
§impl Clone for AggregatedDidDetailsRequestParams
impl Clone for AggregatedDidDetailsRequestParams
§fn clone(&self) -> AggregatedDidDetailsRequestParams
fn clone(&self) -> AggregatedDidDetailsRequestParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for AggregatedDidDetailsRequestParams
impl Debug for AggregatedDidDetailsRequestParams
§impl Decode for AggregatedDidDetailsRequestParams
impl Decode for AggregatedDidDetailsRequestParams
§fn decode<I>(input: &mut I) -> Result<AggregatedDidDetailsRequestParams, Error>where
I: Input,
fn decode<I>(input: &mut I) -> Result<AggregatedDidDetailsRequestParams, Error>where I: Input,
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
§impl Default for AggregatedDidDetailsRequestParams
impl Default for AggregatedDidDetailsRequestParams
§fn default() -> AggregatedDidDetailsRequestParams
fn default() -> AggregatedDidDetailsRequestParams
§impl<'de> Deserialize<'de> for AggregatedDidDetailsRequestParams
impl<'de> Deserialize<'de> for AggregatedDidDetailsRequestParams
§fn deserialize<__D>(
__deserializer: __D
) -> Result<AggregatedDidDetailsRequestParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AggregatedDidDetailsRequestParams, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
§impl Encode for AggregatedDidDetailsRequestParams
impl Encode for AggregatedDidDetailsRequestParams
§fn encode_to<T>(&self, dest: &mut T)where
T: Output + ?Sized,
fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
§impl Extend<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl Extend<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = AggregatedDidDetailsRequestParams>,
fn extend<T>(&mut self, iterator: T)where T: IntoIterator<Item = AggregatedDidDetailsRequestParams>,
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)§impl FromIterator<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl FromIterator<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn from_iter<T>(iterator: T) -> AggregatedDidDetailsRequestParamswhere
T: IntoIterator<Item = AggregatedDidDetailsRequestParams>,
fn from_iter<T>(iterator: T) -> AggregatedDidDetailsRequestParamswhere T: IntoIterator<Item = AggregatedDidDetailsRequestParams>,
§impl Hash for AggregatedDidDetailsRequestParams
impl Hash for AggregatedDidDetailsRequestParams
§impl MaxEncodedLen for AggregatedDidDetailsRequestParams
impl MaxEncodedLen for AggregatedDidDetailsRequestParams
§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
§impl Not for AggregatedDidDetailsRequestParams
impl Not for AggregatedDidDetailsRequestParams
§fn not(self) -> AggregatedDidDetailsRequestParams
fn not(self) -> AggregatedDidDetailsRequestParams
Returns the complement of this set of flags.
§type Output = AggregatedDidDetailsRequestParams
type Output = AggregatedDidDetailsRequestParams
!
operator.§impl Octal for AggregatedDidDetailsRequestParams
impl Octal for AggregatedDidDetailsRequestParams
§impl Ord for AggregatedDidDetailsRequestParams
impl Ord for AggregatedDidDetailsRequestParams
§fn cmp(&self, other: &AggregatedDidDetailsRequestParams) -> Ordering
fn cmp(&self, other: &AggregatedDidDetailsRequestParams) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
§impl PartialEq<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl PartialEq<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn eq(&self, other: &AggregatedDidDetailsRequestParams) -> bool
fn eq(&self, other: &AggregatedDidDetailsRequestParams) -> bool
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl PartialOrd<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn partial_cmp(
&self,
other: &AggregatedDidDetailsRequestParams
) -> Option<Ordering>
fn partial_cmp( &self, other: &AggregatedDidDetailsRequestParams ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more§impl Serialize for AggregatedDidDetailsRequestParams
impl Serialize for AggregatedDidDetailsRequestParams
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
§impl Sub<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl Sub<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn sub(
self,
other: AggregatedDidDetailsRequestParams
) -> AggregatedDidDetailsRequestParams
fn sub( self, other: AggregatedDidDetailsRequestParams ) -> AggregatedDidDetailsRequestParams
Returns the set difference of the two sets of flags.
§type Output = AggregatedDidDetailsRequestParams
type Output = AggregatedDidDetailsRequestParams
-
operator.§impl SubAssign<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
impl SubAssign<AggregatedDidDetailsRequestParams> for AggregatedDidDetailsRequestParams
§fn sub_assign(&mut self, other: AggregatedDidDetailsRequestParams)
fn sub_assign(&mut self, other: AggregatedDidDetailsRequestParams)
Disables all flags enabled in the set.
§impl TryFrom<u8> for AggregatedDidDetailsRequestParams
impl TryFrom<u8> for AggregatedDidDetailsRequestParams
§impl TypeInfo for AggregatedDidDetailsRequestParams
impl TypeInfo for AggregatedDidDetailsRequestParams
impl Copy for AggregatedDidDetailsRequestParams
impl Eq for AggregatedDidDetailsRequestParams
impl StructuralEq for AggregatedDidDetailsRequestParams
impl StructuralPartialEq for AggregatedDidDetailsRequestParams
Auto Trait Implementations§
impl RefUnwindSafe for AggregatedDidDetailsRequestParams
impl Send for AggregatedDidDetailsRequestParams
impl Sync for AggregatedDidDetailsRequestParams
impl Unpin for AggregatedDidDetailsRequestParams
impl UnwindSafe for AggregatedDidDetailsRequestParams
Blanket Implementations§
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere T: Codec,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere T: Codec,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.