pub enum PartialValue {
Show 34 variants
Utf8(String),
Iutf8(String),
Iname(String),
Uuid(Uuid),
Bool(bool),
Syntax(SyntaxType),
Index(IndexType),
Refer(Uuid),
JsonFilt(Filter),
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),
AttestedPasskey(Uuid),
Image(String),
CredentialType(CredentialType),
OauthClaim(String, Uuid),
OauthClaimValue(String, Uuid, String),
HexString(String),
}
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 its 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(Filter)
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)
AttestedPasskey(Uuid)
Image(String)
We compare on the value hash
CredentialType(CredentialType)
OauthClaim(String, Uuid)
OauthClaimValue(String, Uuid, String)
HexString(String)
Implementations§
source§impl 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_s(us: &str) -> Option<Self>
pub fn is_uuid(&self) -> bool
pub fn new_refer_s(us: &str) -> Option<Self>
pub fn is_refer(&self) -> bool
pub fn new_indexes(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_attested_passkey_s(us: &str) -> Option<Self>
pub fn new_hex_string_s(hexstr: &str) -> Option<Self>
pub fn new_image(input: &str) -> 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) -> Option<String>
Trait Implementations§
source§impl Clone for PartialValue
impl Clone for PartialValue
source§fn clone(&self) -> PartialValue
fn clone(&self) -> PartialValue
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 PartialValue
impl Debug for PartialValue
source§impl<'de> Deserialize<'de> for PartialValue
impl<'de> Deserialize<'de> for PartialValue
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 From<&bool> for PartialValue
impl From<&bool> for PartialValue
source§impl From<Attribute> for PartialValue
impl From<Attribute> for PartialValue
source§fn from(attr: Attribute) -> PartialValue
fn from(attr: Attribute) -> PartialValue
Converts to this type from the input type.
source§impl From<CredentialType> for PartialValue
impl From<CredentialType> for PartialValue
source§fn from(ct: CredentialType) -> PartialValue
fn from(ct: CredentialType) -> PartialValue
Converts to this type from the input type.
source§impl From<EntryClass> for PartialValue
impl From<EntryClass> for PartialValue
source§fn from(val: EntryClass) -> Self
fn from(val: EntryClass) -> Self
Converts to this type from the input type.
source§impl From<Filter> for PartialValue
impl From<Filter> for PartialValue
source§fn from(i: ProtoFilter) -> Self
fn from(i: ProtoFilter) -> Self
Converts to this type from the input type.
source§impl From<IndexType> for PartialValue
impl From<IndexType> for PartialValue
source§impl From<OffsetDateTime> for PartialValue
impl From<OffsetDateTime> for PartialValue
source§impl From<SyntaxType> for PartialValue
impl From<SyntaxType> for PartialValue
source§fn from(s: SyntaxType) -> Self
fn from(s: SyntaxType) -> Self
Converts to this type from the input type.
source§impl From<Url> for PartialValue
impl From<Url> for PartialValue
source§impl From<bool> for PartialValue
impl From<bool> for PartialValue
source§impl From<u32> for PartialValue
impl From<u32> for PartialValue
source§impl Hash for PartialValue
impl Hash for PartialValue
source§impl Ord for PartialValue
impl Ord for PartialValue
source§fn cmp(&self, other: &PartialValue) -> Ordering
fn cmp(&self, other: &PartialValue) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PartialValue
impl PartialEq for PartialValue
source§impl PartialOrd for PartialValue
impl PartialOrd for PartialValue
source§impl Serialize for PartialValue
impl Serialize for PartialValue
impl Eq for PartialValue
impl StructuralPartialEq for PartialValue
Auto Trait Implementations§
impl Freeze for PartialValue
impl RefUnwindSafe for PartialValue
impl Send for PartialValue
impl Sync for PartialValue
impl Unpin for PartialValue
impl UnwindSafe for PartialValue
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request