pub enum SynchOpt {
    List(CommonOpt),
    Get(Named),
    Create {
        account_id: String,
        copt: CommonOpt,
        description: Option<String>,
    },
    GenerateToken {
        account_id: String,
        label: String,
        copt: CommonOpt,
    },
    DestroyToken {
        account_id: String,
        copt: CommonOpt,
    },
    ForceRefresh {
        account_id: String,
        copt: CommonOpt,
    },
    Finalise {
        account_id: String,
        copt: CommonOpt,
    },
    Terminate {
        account_id: String,
        copt: CommonOpt,
    },
}

Variants

List(CommonOpt)

List all configured IDM sync accounts

Get(Named)

Display a selected IDM sync account

Create

Fields

account_id: String
copt: CommonOpt
description: Option<String>

Create a new IDM sync account

GenerateToken

Fields

account_id: String
label: String
copt: CommonOpt

Generate a bearer token for an IDM sync account

DestroyToken

Fields

account_id: String
copt: CommonOpt

Destroy (revoke) the bearer token for an IDM sync account

ForceRefresh

Fields

account_id: String
copt: CommonOpt

Reset the sync cookie of this connector, so that on the next operation of the sync tool a full refresh of the provider is requested. Kanidm attributes that have been granted authority will not be lost or deleted.

Finalise

Fields

account_id: String
copt: CommonOpt

Finalise and remove this sync account. This will transfer all synchronised entries into the authority of Kanidm. This signals the end of a migration from an external IDM into Kanidm. ⚠️ This action can NOT be undone. Once complete, it is most likely that attempting to recreate a sync account from the same IDM will fail due to conflicting entries that Kanidm now owns.

Terminate

Fields

account_id: String
copt: CommonOpt

Terminate and remove this sync account. This will DELETE all entries that were imported from the external IDM source. ⚠️ This action can NOT be undone, and will require you to recreate the sync account if you wish to re-import data. Recreating the sync account may fail until the recycle bin and and tombstones are purged.

Implementations

Trait Implementations

Formats the value using the given formatter. Read more
Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Append to [Command] so it can instantiate Self. Read more
Append to [Command] so it can update self. Read more
Test whether Self can parse a specific subcommand

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

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.

Should always be Self
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