kanidmd_lib::valueset

Struct ValueSetOauthScopeMap

source
pub struct ValueSetOauthScopeMap { /* private fields */ }

Implementations§

source§

impl ValueSetOauthScopeMap

source

pub fn new(u: Uuid, m: BTreeSet<String>) -> Box<Self>

source

pub fn push(&mut self, u: Uuid, m: BTreeSet<String>) -> bool

source

pub fn from_dbvs2( data: Vec<DbValueOauthScopeMapV1>, ) -> Result<ValueSet, OperationError>

source

pub fn from_iter<T>(iter: T) -> Option<Box<Self>>
where T: IntoIterator<Item = (Uuid, BTreeSet<String>)>,

Trait Implementations§

source§

impl Clone for ValueSetOauthScopeMap

source§

fn clone(&self) -> ValueSetOauthScopeMap

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ValueSetOauthScopeMap

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ValueSetScimPut for ValueSetOauthScopeMap

source§

impl ValueSetT for ValueSetOauthScopeMap

source§

fn insert_checked(&mut self, value: Value) -> Result<bool, OperationError>

Returns whether the value was newly inserted. That is: Read more
source§

fn clear(&mut self)

source§

fn remove(&mut self, pv: &PartialValue, _cid: &Cid) -> bool

source§

fn contains(&self, pv: &PartialValue) -> bool

source§

fn substring(&self, _pv: &PartialValue) -> bool

source§

fn startswith(&self, _pv: &PartialValue) -> bool

source§

fn endswith(&self, _pv: &PartialValue) -> bool

source§

fn lessthan(&self, _pv: &PartialValue) -> bool

source§

fn len(&self) -> usize

source§

fn generate_idx_eq_keys(&self) -> Vec<String>

source§

fn syntax(&self) -> SyntaxType

source§

fn validate(&self, _schema_attr: &SchemaAttribute) -> bool

source§

fn to_proto_string_clone_iter(&self) -> Box<dyn Iterator<Item = String> + '_>

source§

fn to_scim_value(&self) -> Option<ScimResolveStatus>

source§

fn to_db_valueset_v2(&self) -> DbValueSetV2

source§

fn to_partialvalue_iter(&self) -> Box<dyn Iterator<Item = PartialValue> + '_>

source§

fn to_value_iter(&self) -> Box<dyn Iterator<Item = Value> + '_>

source§

fn equal(&self, other: &ValueSet) -> bool

source§

fn merge(&mut self, other: &ValueSet) -> Result<(), OperationError>

source§

fn as_oauthscopemap(&self) -> Option<&BTreeMap<Uuid, BTreeSet<String>>>

source§

fn as_ref_uuid_iter(&self) -> Option<Box<dyn Iterator<Item = Uuid> + '_>>

source§

fn purge(&mut self, _cid: &Cid) -> bool

source§

fn trim(&mut self, _trim_cid: &Cid)

source§

fn generate_idx_sub_keys(&self) -> Vec<String>

source§

fn is_empty(&self) -> bool

source§

fn migrate_iutf8_iname(&self) -> Result<Option<ValueSet>, OperationError>

source§

fn get_ssh_tag(&self, _tag: &str) -> Option<&SshPublicKey>

source§

fn as_utf8_iter(&self) -> Option<Box<dyn Iterator<Item = &str> + '_>>

source§

fn as_iutf8_iter(&self) -> Option<Box<dyn Iterator<Item = &str> + '_>>

source§

fn as_iname_iter(&self) -> Option<Box<dyn Iterator<Item = &str> + '_>>

source§

fn as_indextype_iter(&self) -> Option<Box<dyn Iterator<Item = IndexType> + '_>>

source§

fn as_restricted_string_iter( &self, ) -> Option<Box<dyn Iterator<Item = &str> + '_>>

source§

fn as_oauthscope_iter(&self) -> Option<Box<dyn Iterator<Item = &str> + '_>>

source§

fn as_sshpubkey_string_iter( &self, ) -> Option<Box<dyn Iterator<Item = String> + '_>>

source§

fn as_email_str_iter(&self) -> Option<Box<dyn Iterator<Item = &str> + '_>>

source§

fn as_utf8_set(&self) -> Option<&BTreeSet<String>>

source§

fn as_iutf8_set(&self) -> Option<&BTreeSet<String>>

source§

fn as_iname_set(&self) -> Option<&BTreeSet<String>>

source§

fn as_uuid_set(&self) -> Option<&SmolSet<[Uuid; 1]>>

source§

fn as_refer_set(&self) -> Option<&BTreeSet<Uuid>>

source§

fn as_refer_set_mut(&mut self) -> Option<&mut BTreeSet<Uuid>>

source§

fn as_bool_set(&self) -> Option<&SmolSet<[bool; 1]>>

source§

fn as_uint32_set(&self) -> Option<&SmolSet<[u32; 1]>>

source§

fn as_syntax_set(&self) -> Option<&SmolSet<[SyntaxType; 1]>>

source§

fn as_index_set(&self) -> Option<&SmolSet<[IndexType; 3]>>

source§

fn as_secret_set(&self) -> Option<&SmolSet<[String; 1]>>

source§

fn as_restricted_string_set(&self) -> Option<&BTreeSet<String>>

source§

fn as_spn_set(&self) -> Option<&SmolSet<[(String, String); 1]>>

source§

fn as_cid_set(&self) -> Option<&SmolSet<[Cid; 1]>>

source§

fn as_json_filter_set(&self) -> Option<&SmolSet<[ProtoFilter; 1]>>

source§

fn as_nsuniqueid_set(&self) -> Option<&SmolSet<[String; 1]>>

source§

fn as_url_set(&self) -> Option<&SmolSet<[Url; 1]>>

source§

fn as_datetime_set(&self) -> Option<&SmolSet<[OffsetDateTime; 1]>>

source§

fn as_private_binary_set(&self) -> Option<&SmolSet<[Vec<u8>; 1]>>

source§

fn as_oauthscope_set(&self) -> Option<&BTreeSet<String>>

source§

fn as_address_set(&self) -> Option<&SmolSet<[Address; 1]>>

source§

fn as_credential_map(&self) -> Option<&BTreeMap<String, Credential>>

source§

fn as_totp_map(&self) -> Option<&BTreeMap<String, Totp>>

source§

fn as_emailaddress_set(&self) -> Option<(&String, &BTreeSet<String>)>

source§

fn as_sshkey_map(&self) -> Option<&BTreeMap<String, SshPublicKey>>

source§

fn as_publicbinary_map(&self) -> Option<&BTreeMap<String, Vec<u8>>>

source§

fn as_intenttoken_map(&self) -> Option<&BTreeMap<String, IntentTokenState>>

source§

fn as_passkey_map(&self) -> Option<&BTreeMap<Uuid, (String, PasskeyV4)>>

source§

fn as_attestedpasskey_map( &self, ) -> Option<&BTreeMap<Uuid, (String, AttestedPasskeyV4)>>

source§

fn as_webauthn_attestation_ca_list(&self) -> Option<&AttestationCaList>

source§

fn as_oauthclaim_map(&self) -> Option<&BTreeMap<String, OauthClaimMapping>>

source§

fn as_key_internal_map(&self) -> Option<&BTreeMap<String, KeyInternalData>>

source§

fn as_hexstring_set(&self) -> Option<&BTreeSet<String>>

source§

fn as_application_password_map( &self, ) -> Option<&BTreeMap<Uuid, Vec<ApplicationPassword>>>

source§

fn to_value_single(&self) -> Option<Value>

source§

fn to_proto_string_single(&self) -> Option<String>

source§

fn to_uuid_single(&self) -> Option<Uuid>

source§

fn to_cid_single(&self) -> Option<Cid>

source§

fn to_refer_single(&self) -> Option<Uuid>

source§

fn to_bool_single(&self) -> Option<bool>

source§

fn to_uint32_single(&self) -> Option<u32>

source§

fn to_syntaxtype_single(&self) -> Option<SyntaxType>

source§

fn to_credential_single(&self) -> Option<&Credential>

source§

fn to_secret_single(&self) -> Option<&str>

source§

fn to_restricted_string_single(&self) -> Option<&str>

source§

fn to_utf8_single(&self) -> Option<&str>

source§

fn to_iutf8_single(&self) -> Option<&str>

source§

fn to_iname_single(&self) -> Option<&str>

source§

fn to_datetime_single(&self) -> Option<OffsetDateTime>

source§

fn to_url_single(&self) -> Option<&Url>

source§

fn to_json_filter_single(&self) -> Option<&ProtoFilter>

source§

fn to_email_address_primary_str(&self) -> Option<&str>

source§

fn to_private_binary_single(&self) -> Option<&[u8]>

source§

fn to_passkey_single(&self) -> Option<&PasskeyV4>

source§

fn as_session_map(&self) -> Option<&BTreeMap<Uuid, Session>>

source§

fn as_apitoken_map(&self) -> Option<&BTreeMap<Uuid, ApiToken>>

source§

fn as_oauth2session_map(&self) -> Option<&BTreeMap<Uuid, Oauth2Session>>

source§

fn to_jws_key_es256_single(&self) -> Option<&JwsEs256Signer>

source§

fn to_eckey_private_single(&self) -> Option<&EcKey<Private>>

source§

fn to_eckey_public_single(&self) -> Option<&EcKey<Public>>

source§

fn as_jws_key_es256_set(&self) -> Option<&HashSet<JwsEs256Signer>>

source§

fn to_jws_key_rs256_single(&self) -> Option<&JwsRs256Signer>

source§

fn as_jws_key_rs256_set(&self) -> Option<&HashSet<JwsRs256Signer>>

source§

fn as_uihint_set(&self) -> Option<&BTreeSet<UiHint>>

source§

fn as_uihint_iter(&self) -> Option<Box<dyn Iterator<Item = UiHint> + '_>>

source§

fn as_audit_log_string(&self) -> Option<&BTreeMap<Cid, String>>

source§

fn as_ec_key_private(&self) -> Option<&EcKey<Private>>

source§

fn as_imageset(&self) -> Option<&HashSet<ImageValue>>

source§

fn to_credentialtype_single(&self) -> Option<CredentialType>

source§

fn as_credentialtype_set(&self) -> Option<&SmolSet<[CredentialType; 1]>>

source§

fn to_certificate_single(&self) -> Option<&Certificate>

source§

fn as_certificate_set( &self, ) -> Option<&BTreeMap<Sha256Digest, Box<Certificate>>>

source§

fn repl_merge_valueset( &self, _older: &ValueSet, _trim_cid: &Cid, ) -> Option<ValueSet>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T> AsTaggedExplicit<'a> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>

§

impl<'a, T> AsTaggedImplicit<'a> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more