Enum kanidmd_lib::value::PartialValue
source · [−]pub enum PartialValue {
Show 31 variants
Utf8(String),
Iutf8(String),
Iname(String),
Uuid(Uuid),
Bool(bool),
Syntax(SyntaxType),
Index(IndexType),
Refer(Uuid),
JsonFilt(ProtoFilter),
Cred(String),
SshKey(String),
SecretValue,
Spn(String, String),
Uint32(u32),
Cid(Cid),
Nsuniqueid(String),
DateTime(OffsetDateTime),
EmailAddress(String),
PhoneNumber(String),
Address(String),
Url(Url),
OauthScope(String),
PrivateBinary,
PublicBinary(String),
RestrictedString(String),
IntentToken(String),
UiHint(UiHint),
Passkey(Uuid),
DeviceKey(Uuid),
TrustedDeviceEnrollment(Uuid),
Session(Uuid),
}
Expand description
A partial value is a key or key subset that can be used to match for equality or substring against a complete Value within a set in an Entry.
A partialValue is typically used when you need to match against a value, but without requiring all of it’s data or expression. This is common in Filters or other direct lookups and requests.
Variants
Utf8(String)
Iutf8(String)
Iname(String)
Uuid(Uuid)
Bool(bool)
Syntax(SyntaxType)
Index(IndexType)
Refer(Uuid)
JsonFilt(ProtoFilter)
Cred(String)
SshKey(String)
SecretValue
Spn(String, String)
Uint32(u32)
Cid(Cid)
Nsuniqueid(String)
DateTime(OffsetDateTime)
EmailAddress(String)
PhoneNumber(String)
Address(String)
Url(Url)
OauthScope(String)
PrivateBinary
PublicBinary(String)
RestrictedString(String)
IntentToken(String)
UiHint(UiHint)
Passkey(Uuid)
DeviceKey(Uuid)
TrustedDeviceEnrollment(Uuid)
Session(Uuid)
Implementations
sourceimpl PartialValue
impl PartialValue
pub fn new_utf8(s: String) -> Self
pub fn new_utf8s(s: &str) -> Self
pub fn is_utf8(&self) -> bool
pub fn new_iutf8(s: &str) -> Self
pub fn new_iname(s: &str) -> Self
pub fn new_class(s: &str) -> Self
pub fn is_iutf8(&self) -> bool
pub fn is_iname(&self) -> bool
pub fn new_bool(b: bool) -> Self
pub fn new_bools(s: &str) -> Option<Self>
pub fn is_bool(&self) -> bool
pub fn new_uuid(u: Uuid) -> Self
pub fn new_uuids(us: &str) -> Option<Self>
pub fn is_uuid(&self) -> bool
pub fn new_refer(u: Uuid) -> Self
pub fn new_refer_r(u: &Uuid) -> Self
pub fn new_refer_s(us: &str) -> Option<Self>
pub fn is_refer(&self) -> bool
pub fn new_indexs(s: &str) -> Option<Self>
pub fn is_index(&self) -> bool
pub fn new_syntaxs(s: &str) -> Option<Self>
pub fn is_syntax(&self) -> bool
pub fn new_json_filter_s(s: &str) -> Option<Self>
pub fn is_json_filter(&self) -> bool
pub fn new_credential_tag(s: &str) -> Self
pub fn is_credential(&self) -> bool
pub fn new_secret_str() -> Self
pub fn is_secret_string(&self) -> bool
pub fn new_sshkey_tag(s: String) -> Self
pub fn new_sshkey_tag_s(s: &str) -> Self
pub fn is_sshkey(&self) -> bool
pub fn new_spn_s(s: &str) -> Option<Self>
pub fn new_spn_nrs(n: &str, r: &str) -> Self
pub fn is_spn(&self) -> bool
pub fn new_uint32(u: u32) -> Self
pub fn new_uint32_str(u: &str) -> Option<Self>
pub fn is_uint32(&self) -> bool
pub fn new_cid(c: Cid) -> Self
pub fn new_cid_s(_c: &str) -> Option<Self>
pub fn is_cid(&self) -> bool
pub fn new_nsuniqueid_s(s: &str) -> Self
pub fn is_nsuniqueid(&self) -> bool
pub fn new_datetime_epoch(ts: Duration) -> Self
pub fn new_datetime_s(s: &str) -> Option<Self>
pub fn is_datetime(&self) -> bool
pub fn new_email_address_s(s: &str) -> Self
pub fn is_email_address(&self) -> bool
pub fn new_phonenumber_s(s: &str) -> Self
pub fn new_address(s: &str) -> Self
pub fn new_url_s(s: &str) -> Option<Self>
pub fn is_url(&self) -> bool
pub fn new_oauthscope(s: &str) -> Self
pub fn is_oauthscope(&self) -> bool
pub fn is_privatebinary(&self) -> bool
pub fn new_publicbinary_tag_s(s: &str) -> Self
pub fn new_restrictedstring_s(s: &str) -> Self
pub fn new_intenttoken_s(s: String) -> Option<Self>
pub fn new_passkey_s(us: &str) -> Option<Self>
pub fn new_devicekey_s(us: &str) -> Option<Self>
pub fn to_str(&self) -> Option<&str>
pub fn to_url(&self) -> Option<&Url>
pub fn get_idx_eq_key(&self) -> String
pub fn get_idx_sub_key(&self) -> String
Trait Implementations
sourceimpl Clone for PartialValue
impl Clone for PartialValue
sourcefn clone(&self) -> PartialValue
fn clone(&self) -> PartialValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PartialValue
impl Debug for PartialValue
sourceimpl<'de> Deserialize<'de> for PartialValue
impl<'de> Deserialize<'de> for PartialValue
sourcefn 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
sourceimpl From<&bool> for PartialValue
impl From<&bool> for PartialValue
sourceimpl From<Filter> for PartialValue
impl From<Filter> for PartialValue
sourceimpl From<IndexType> for PartialValue
impl From<IndexType> for PartialValue
sourceimpl From<OffsetDateTime> for PartialValue
impl From<OffsetDateTime> for PartialValue
sourceimpl From<SyntaxType> for PartialValue
impl From<SyntaxType> for PartialValue
sourcefn from(s: SyntaxType) -> Self
fn from(s: SyntaxType) -> Self
Converts to this type from the input type.
sourceimpl From<Url> for PartialValue
impl From<Url> for PartialValue
sourceimpl From<bool> for PartialValue
impl From<bool> for PartialValue
sourceimpl From<u32> for PartialValue
impl From<u32> for PartialValue
sourceimpl Hash for PartialValue
impl Hash for PartialValue
sourceimpl Ord for PartialValue
impl Ord for PartialValue
sourcefn cmp(&self, other: &PartialValue) -> Ordering
fn cmp(&self, other: &PartialValue) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PartialValue> for PartialValue
impl PartialEq<PartialValue> for PartialValue
sourcefn eq(&self, other: &PartialValue) -> bool
fn eq(&self, other: &PartialValue) -> bool
sourceimpl PartialOrd<PartialValue> for PartialValue
impl PartialOrd<PartialValue> for PartialValue
sourcefn partial_cmp(&self, other: &PartialValue) -> Option<Ordering>
fn partial_cmp(&self, other: &PartialValue) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for PartialValue
impl Serialize for PartialValue
impl Eq for PartialValue
impl StructuralEq for PartialValue
impl StructuralPartialEq for PartialValue
Auto Trait Implementations
impl RefUnwindSafe for PartialValue
impl Send for PartialValue
impl Sync for PartialValue
impl Unpin for PartialValue
impl UnwindSafe for PartialValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more