pub struct E_ANONYMOUS_V1 { /* private fields */ }

Methods from Deref<Target = EntryInitNew>§

source

pub fn compare(&self, rhs: &Entry<EntrySealed, EntryCommitted>) -> bool

Compare this entry to another.

source

pub fn compare(&self, rhs: &Entry<EntrySealed, EntryNew>) -> bool

source

pub fn get_id(&self) -> u64

If this entry has ever been committed to disk, retrieve it’s database id number.

source

pub fn compare(&self, rhs: &Entry<EntrySealed, EntryCommitted>) -> bool

source

pub fn to_dbentry(&self) -> DbEntry

Serialise this entry to it’s Database format ready for storage.

source

pub fn reduce_attributes( &self, allowed_attrs: &BTreeSet<&str> ) -> Entry<EntryReduced, EntryCommitted>

Given a set of attributes that are allowed to be seen on this entry, process and remove all other values that are NOT allowed in this query.

source

pub fn to_tombstone(&self, cid: Cid) -> Entry<EntryInvalid, EntryCommitted>

Convert this recycled entry, into a tombstone ready for reaping.

source

pub fn verify( &self, schema: &dyn SchemaTransaction, results: &mut Vec<Result<(), ConsistencyError>> )

source

pub fn get_uuid(&self) -> Uuid

source

pub fn get_uuid(&self) -> Uuid

source

pub fn get_changestate(&self) -> &EntryChangeState

source

pub fn get_uuid(&self) -> Uuid

source

pub fn to_pe( &self, qs: &mut QueryServerReadTransaction<'_> ) -> Result<ProtoEntry, OperationError>

Transform this reduced entry into a JSON protocol form that can be sent to clients.

source

pub fn to_ldap( &self, qs: &mut QueryServerReadTransaction<'_>, basedn: &str, all_attrs: bool, l_attrs: &[String] ) -> Result<LdapSearchResultEntry, OperationError>

Transform this reduced entry into an LDAP form that can be sent to clients.

source

pub fn get_ava_names(&self) -> impl Iterator<Item = &str>

Get an iterator over the current set of attribute names that this entry contains.

source

pub fn get_ava(&self) -> &Eattrs

Get an iterator over the current set of values for an attribute name.

source

pub fn get_ava_iter(&self) -> impl Iterator<Item = (&AttrString, &ValueSet)>

source

pub fn get_ava_set(&self, attr: &str) -> Option<&ValueSet>

Return a reference to the current set of values that are associated to this attribute.

source

pub fn get_ava_refer(&self, attr: &str) -> Option<&BTreeSet<Uuid>>

source

pub fn get_ava_as_iutf8_iter( &self, attr: &str ) -> Option<impl Iterator<Item = &str>>

source

pub fn get_ava_as_iutf8(&self, attr: &str) -> Option<&BTreeSet<String>>

source

pub fn get_ava_as_oauthscopes( &self, attr: &str ) -> Option<impl Iterator<Item = &str>>

source

pub fn get_ava_as_oauthscopemaps( &self, attr: &str ) -> Option<&BTreeMap<Uuid, BTreeSet<String>>>

source

pub fn get_ava_as_intenttokens( &self, attr: &str ) -> Option<&BTreeMap<String, IntentTokenState>>

source

pub fn get_ava_as_session_map( &self, attr: &str ) -> Option<&BTreeMap<Uuid, Session>>

source

pub fn get_ava_as_apitoken_map( &self, attr: &str ) -> Option<&BTreeMap<Uuid, ApiToken>>

source

pub fn get_ava_as_oauth2session_map( &self, attr: &str ) -> Option<&BTreeMap<Uuid, Oauth2Session>>

source

pub fn get_ava_iter_iname( &self, attr: &str ) -> Option<impl Iterator<Item = &str>>

If possible, return an iterator over the set of values transformed into a &str.

source

pub fn get_ava_iter_iutf8( &self, attr: &str ) -> Option<impl Iterator<Item = &str>>

If possible, return an iterator over the set of values transformed into a &str.

source

pub fn get_ava_as_refuuid( &self, attr: &str ) -> Option<Box<dyn Iterator<Item = Uuid> + '_>>

If possible, return an iterator over the set of values transformed into a Uuid.

source

pub fn get_ava_iter_sshpubkeys( &self, attr: &str ) -> Option<impl Iterator<Item = &str>>

If possible, return an iterator over the set of ssh key values transformed into a &str.

source

pub fn get_ava_single(&self, attr: &str) -> Option<Value>

Return a single value of this attributes name, or None if it is NOT present, or there are multiple values present (ambiguous).

source

pub fn get_ava_single_proto_string(&self, attr: &str) -> Option<String>

source

pub fn get_ava_single_bool(&self, attr: &str) -> Option<bool>

Return a single bool, if valid to transform this value into a boolean.

source

pub fn get_ava_single_uint32(&self, attr: &str) -> Option<u32>

Return a single uint32, if valid to transform this value.

source

pub fn get_ava_single_syntax(&self, attr: &str) -> Option<SyntaxType>

Return a single syntax type, if valid to transform this value.

source

pub fn get_ava_single_credential(&self, attr: &str) -> Option<&Credential>

Return a single credential, if valid to transform this value.

source

pub fn get_ava_passkeys( &self, attr: &str ) -> Option<&BTreeMap<Uuid, (String, PasskeyV4)>>

Get the set of passkeys on this account, if any are present.

source

pub fn get_ava_devicekeys( &self, attr: &str ) -> Option<&BTreeMap<Uuid, (String, DeviceKeyV4)>>

Get the set of devicekeys on this account, if any are present.

source

pub fn get_ava_uihint(&self, attr: &str) -> Option<&BTreeSet<UiHint>>

Get the set of uihints on this account, if any are present.

source

pub fn get_ava_single_secret(&self, attr: &str) -> Option<&str>

Return a single secret value, if valid to transform this value.

source

pub fn get_ava_single_datetime(&self, attr: &str) -> Option<OffsetDateTime>

Return a single datetime, if valid to transform this value.

source

pub fn get_ava_single_url(&self, attr: &str) -> Option<&Url>

Return a single &Url, if valid to transform this value.

source

pub fn get_ava_single_uuid(&self, attr: &str) -> Option<Uuid>

source

pub fn get_ava_single_refer(&self, attr: &str) -> Option<Uuid>

source

pub fn get_ava_mail_primary(&self, attr: &str) -> Option<&str>

source

pub fn get_ava_iter_mail(&self, attr: &str) -> Option<impl Iterator<Item = &str>>

source

pub fn get_ava_single_protofilter(&self, attr: &str) -> Option<&ProtoFilter>

Return a single protocol filter, if valid to transform this value.

source

pub fn get_ava_single_private_binary(&self, attr: &str) -> Option<&[u8]>

source

pub fn get_ava_single_jws_key_es256(&self, attr: &str) -> Option<&JwsSigner>

source

pub fn attribute_pres(&self, attr: &str) -> bool

Assert if an attribute of this name is present on this entry.

source

pub fn attribute_equality(&self, attr: &str, value: &PartialValue) -> bool

Assert if an attribute of this name is present, and one of it’s values contains the an exact match of this partial value.

source

pub fn attribute_substring(&self, attr: &str, subvalue: &PartialValue) -> bool

Assert if an attribute of this name is present, and one of it’s values contains the following substring, if possible to perform the substring comparison.

source

pub fn attribute_lessthan(&self, attr: &str, subvalue: &PartialValue) -> bool

Assert if an attribute of this name is present, and one of it’s values is less than the following partial value

source

pub fn entry_match_no_index(&self, filter: &Filter<FilterValidResolved>) -> bool

Test if the following filter applies to and matches this entry.

source

pub fn filter_from_attrs( &self, attrs: &[AttrString] ) -> Option<Filter<FilterInvalid>>

Given this entry, generate a filter containing the requested attributes strings as equality components.

source

pub fn gen_modlist_assert( &self, schema: &dyn SchemaTransaction ) -> Result<ModifyList<ModifyInvalid>, SchemaError>

Given this entry, generate a modification list that would “assert” another entry is in the same/identical attribute state.

source

pub fn mask_recycled_ts(&self) -> Option<&Self>

Determine if this entry is recycled or a tombstone, and map that to “None”. This allows filter_map to effectively remove entries that should not be considered as “alive”.

source

pub fn mask_recycled(&self) -> Option<&Self>

Determine if this entry is recycled, and map that to “None”. This allows filter_map to effectively remove entries that are recycled in some cases.

source

pub fn mask_tombstone(&self) -> Option<&Self>

Determine if this entry is a tombstone, and map that to “None”. This allows filter_map to effectively remove entries that are tombstones in some cases.

Trait Implementations§

source§

impl Deref for E_ANONYMOUS_V1

§

type Target = Entry<EntryInit, EntryNew>

The resulting type after dereferencing.
source§

fn deref(&self) -> &EntryInitNew

Dereferences the value.
source§

impl LazyStatic for E_ANONYMOUS_V1

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

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

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

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 Twhere U: From<T>,

const: unstable · 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

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

§

type Output = T

Should always be Self
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
§

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

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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