pub enum LDAPOperation {
    Add(LDAPEntry),
    Delete {
        dn: String,
    },
    Modify {
        dn: String,
        mods: Vec<Mod<String>>,
        bin_mods: Vec<Mod<Vec<u8>>>,
    },
}
Expand description

an operation to perform to turn one LDAP object into another. we purposefully only include operations here that operate without moving the object to a different DN

Variants

Add(LDAPEntry)

add a new entry

Delete

Fields

dn: String

the DN of the entry to delete

delete an existing entry

Modify

Fields

dn: String

the DN of the entry to modify

mods: Vec<Mod<String>>

the modifications to textual attributes to perform

bin_mods: Vec<Mod<Vec<u8>>>

the modifications to binary attributes to perform

modify attributes of an existing entry

Implementations

Optionally returns mutable references to the inner fields if this is a LDAPOperation::Add, otherwise None

Optionally returns references to the inner fields if this is a LDAPOperation::Add, otherwise None

Returns the inner fields if this is a LDAPOperation::Add, otherwise returns back the enum in the Err case of the result

Optionally returns mutable references to the inner fields if this is a LDAPOperation::Delete, otherwise None

Optionally returns references to the inner fields if this is a LDAPOperation::Delete, otherwise None

Returns the inner fields if this is a LDAPOperation::Delete, otherwise returns back the enum in the Err case of the result

Optionally returns mutable references to the inner fields if this is a LDAPOperation::Modify, otherwise None

Optionally returns references to the inner fields if this is a LDAPOperation::Modify, otherwise None

Returns the inner fields if this is a LDAPOperation::Modify, otherwise returns back the enum in the Err case of the result

Used to order operations so parents are added first and children deleted first

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The number of items that this chain link consists of.
Append the elements in this link to the chain.
An iterator over the items within this container, by value.
Iterate over the elements of the container (using internal iteration because GATs are unstable).

Returns the argument unchanged.

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

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more