Enum kanidm_proto::scim_v1::server::ScimValueKanidm

source ·
pub enum ScimValueKanidm {
Show 27 variants Bool(bool), Uint32(u32), Integer(i64), Decimal(f64), String(String), DateTime(OffsetDateTime), Reference(Url), Uuid(Uuid), EntryReference(ScimReference), EntryReferences(Vec<ScimReference>), ArrayString(Vec<String>), ArrayDateTime(Vec<OffsetDateTime>), ArrayUuid(Vec<Uuid>), ArrayBinary(Vec<ScimBinary>), ArrayCertificate(Vec<ScimCertificate>), Address(Vec<ScimAddress>), Mail(Vec<ScimMail>), ApplicationPassword(Vec<ScimApplicationPassword>), AuditString(Vec<ScimAuditString>), SshPublicKey(Vec<ScimSshPublicKey>), AuthSession(Vec<ScimAuthSession>), OAuth2Session(Vec<ScimOAuth2Session>), ApiToken(Vec<ScimApiToken>), IntentToken(Vec<ScimIntentToken>), OAuth2ScopeMap(Vec<ScimOAuth2ScopeMap>), OAuth2ClaimMap(Vec<ScimOAuth2ClaimMap>), KeyInternal(Vec<ScimKeyInternal>),
}
Expand description

This is a strongly typed ScimValue for Kanidm. It is for serialisation only since on a deserialisation path we can not know the intent of the sender to how we deserialise strings. Additionally during deserialisation we need to accept optional or partial types too.

Variants§

§

Bool(bool)

§

Uint32(u32)

§

Integer(i64)

§

Decimal(f64)

§

String(String)

§

DateTime(OffsetDateTime)

§

Reference(Url)

§

Uuid(Uuid)

§

EntryReference(ScimReference)

§

EntryReferences(Vec<ScimReference>)

§

ArrayString(Vec<String>)

§

ArrayDateTime(Vec<OffsetDateTime>)

§

ArrayUuid(Vec<Uuid>)

§

ArrayBinary(Vec<ScimBinary>)

§

ArrayCertificate(Vec<ScimCertificate>)

§

Address(Vec<ScimAddress>)

§

Mail(Vec<ScimMail>)

§

ApplicationPassword(Vec<ScimApplicationPassword>)

§

AuditString(Vec<ScimAuditString>)

§

SshPublicKey(Vec<ScimSshPublicKey>)

§

AuthSession(Vec<ScimAuthSession>)

§

OAuth2Session(Vec<ScimOAuth2Session>)

§

ApiToken(Vec<ScimApiToken>)

§

IntentToken(Vec<ScimIntentToken>)

§

OAuth2ScopeMap(Vec<ScimOAuth2ScopeMap>)

§

OAuth2ClaimMap(Vec<ScimOAuth2ClaimMap>)

§

KeyInternal(Vec<ScimKeyInternal>)

Trait Implementations§

source§

impl Clone for ScimValueKanidm

source§

fn clone(&self) -> ScimValueKanidm

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 ScimValueKanidm

source§

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

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

impl From<OffsetDateTime> for ScimValueKanidm

source§

fn from(odt: OffsetDateTime) -> Self

Converts to this type from the input type.
source§

impl From<String> for ScimValueKanidm

source§

fn from(s: String) -> Self

Converts to this type from the input type.
source§

impl From<Uuid> for ScimValueKanidm

source§

fn from(u: Uuid) -> Self

Converts to this type from the input type.
source§

impl From<Vec<OffsetDateTime>> for ScimValueKanidm

source§

fn from(set: Vec<OffsetDateTime>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimAddress>> for ScimValueKanidm

source§

fn from(set: Vec<ScimAddress>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimApiToken>> for ScimValueKanidm

source§

fn from(set: Vec<ScimApiToken>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimApplicationPassword>> for ScimValueKanidm

source§

fn from(set: Vec<ScimApplicationPassword>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimAuditString>> for ScimValueKanidm

source§

fn from(set: Vec<ScimAuditString>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimAuthSession>> for ScimValueKanidm

source§

fn from(set: Vec<ScimAuthSession>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimBinary>> for ScimValueKanidm

source§

fn from(set: Vec<ScimBinary>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimCertificate>> for ScimValueKanidm

source§

fn from(set: Vec<ScimCertificate>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimIntentToken>> for ScimValueKanidm

source§

fn from(set: Vec<ScimIntentToken>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimKeyInternal>> for ScimValueKanidm

source§

fn from(set: Vec<ScimKeyInternal>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimMail>> for ScimValueKanidm

source§

fn from(set: Vec<ScimMail>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimOAuth2ClaimMap>> for ScimValueKanidm

source§

fn from(set: Vec<ScimOAuth2ClaimMap>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimOAuth2ScopeMap>> for ScimValueKanidm

source§

fn from(set: Vec<ScimOAuth2ScopeMap>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimOAuth2Session>> for ScimValueKanidm

source§

fn from(set: Vec<ScimOAuth2Session>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<ScimSshPublicKey>> for ScimValueKanidm

source§

fn from(set: Vec<ScimSshPublicKey>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<String>> for ScimValueKanidm

source§

fn from(set: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Uuid>> for ScimValueKanidm

source§

fn from(set: Vec<Uuid>) -> Self

Converts to this type from the input type.
source§

impl From<bool> for ScimValueKanidm

source§

fn from(b: bool) -> Self

Converts to this type from the input type.
source§

impl From<u32> for ScimValueKanidm

source§

fn from(u: u32) -> Self

Converts to this type from the input type.
source§

impl Serialize for ScimValueKanidm

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'__s> ToSchema<'__s> for ScimValueKanidm

source§

fn schema() -> (&'__s str, RefOr<Schema>)

Return a tuple of name and schema or reference to a schema that can be referenced by the name or inlined directly to responses, request bodies or parameters.
§

fn aliases() -> Vec<(&'__s str, Schema)>

Optional set of alias schemas for the [ToSchema::schema]. Read more

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§

default 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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>,

§

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