Struct kanidm_client::KanidmClient[][src]

pub struct KanidmClient { /* fields omitted */ }

Implementations

impl KanidmClient[src]

pub fn get_origin(&self) -> &str[src]

pub fn get_url(&self) -> &str[src]

pub fn new_session(&self) -> Result<Self, Error>[src]

pub fn set_token(&self, new_token: String)[src]

pub fn get_token(&self) -> Option<String>[src]

pub fn logout(&self)[src]

pub fn whoami(&self) -> Result<Option<(Entry, UserAuthToken)>, ClientError>[src]

pub fn auth_step_init(&self, ident: &str) -> Result<Set<AuthMech>, ClientError>[src]

pub fn auth_step_begin(
    &self,
    mech: AuthMech
) -> Result<Vec<AuthAllowed>, ClientError>
[src]

pub fn auth_step_anonymous(&self) -> Result<AuthResponse, ClientError>[src]

pub fn auth_step_password(
    &self,
    password: &str
) -> Result<AuthResponse, ClientError>
[src]

pub fn auth_step_backup_code(
    &self,
    backup_code: &str
) -> Result<AuthResponse, ClientError>
[src]

pub fn auth_step_totp(&self, totp: u32) -> Result<AuthResponse, ClientError>[src]

pub fn auth_step_webauthn_complete(
    &self,
    pkc: PublicKeyCredential
) -> Result<AuthResponse, ClientError>
[src]

pub fn auth_anonymous(&self) -> Result<(), ClientError>[src]

pub fn auth_simple_password(
    &self,
    ident: &str,
    password: &str
) -> Result<(), ClientError>
[src]

pub fn auth_password_totp(
    &self,
    ident: &str,
    password: &str,
    totp: u32
) -> Result<(), ClientError>
[src]

pub fn auth_password_backup_code(
    &self,
    ident: &str,
    password: &str,
    backup_code: &str
) -> Result<(), ClientError>
[src]

pub fn auth_webauthn_begin(
    &self,
    ident: &str
) -> Result<RequestChallengeResponse, ClientError>
[src]

pub fn auth_valid(&self) -> Result<(), ClientError>[src]

pub fn auth_webauthn_complete(
    &self,
    pkc: PublicKeyCredential
) -> Result<(), ClientError>
[src]

pub fn search(&self, filter: Filter) -> Result<Vec<Entry>, ClientError>[src]

pub fn create(&self, entries: Vec<Entry>) -> Result<(), ClientError>[src]

pub fn modify(
    &self,
    filter: Filter,
    modlist: ModifyList
) -> Result<(), ClientError>
[src]

pub fn delete(&self, filter: Filter) -> Result<(), ClientError>[src]

pub fn idm_group_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_group_get(&self, id: &str) -> Result<Option<Entry>, ClientError>[src]

pub fn idm_group_get_members(
    &self,
    id: &str
) -> Result<Option<Vec<String>>, ClientError>
[src]

pub fn idm_group_set_members(
    &self,
    id: &str,
    members: &[&str]
) -> Result<(), ClientError>
[src]

pub fn idm_group_add_members(
    &self,
    id: &str,
    members: &[&str]
) -> Result<(), ClientError>
[src]

pub fn idm_group_remove_members(
    &self,
    group: &str,
    members: &[&str]
) -> Result<(), ClientError>
[src]

pub fn idm_group_purge_members(&self, id: &str) -> Result<(), ClientError>[src]

pub fn idm_group_unix_token_get(
    &self,
    id: &str
) -> Result<UnixGroupToken, ClientError>
[src]

pub fn idm_group_unix_extend(
    &self,
    id: &str,
    gidnumber: Option<u32>
) -> Result<(), ClientError>
[src]

pub fn idm_group_delete(&self, id: &str) -> Result<(), ClientError>[src]

pub fn idm_group_create(&self, name: &str) -> Result<(), ClientError>[src]

pub fn idm_account_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_account_create(
    &self,
    name: &str,
    dn: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_set_password(
    &self,
    cleartext: String
) -> Result<(), ClientError>
[src]

pub fn idm_account_set_displayname(
    &self,
    id: &str,
    dn: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_delete(&self, id: &str) -> Result<(), ClientError>[src]

pub fn idm_account_get(&self, id: &str) -> Result<Option<Entry>, ClientError>[src]

pub fn idm_account_get_attr(
    &self,
    id: &str,
    attr: &str
) -> Result<Option<Vec<String>>, ClientError>
[src]

pub fn idm_account_primary_credential_set_password(
    &self,
    id: &str,
    pw: &str
) -> Result<SetCredentialResponse, ClientError>
[src]

pub fn idm_account_purge_attr(
    &self,
    id: &str,
    attr: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_add_attr(
    &self,
    id: &str,
    attr: &str,
    values: &[&str]
) -> Result<(), ClientError>
[src]

pub fn idm_account_set_attr(
    &self,
    id: &str,
    attr: &str,
    values: &[&str]
) -> Result<(), ClientError>
[src]

pub fn idm_account_primary_credential_import_password(
    &self,
    id: &str,
    pw: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_primary_credential_set_generated(
    &self,
    id: &str
) -> Result<String, ClientError>
[src]

pub fn idm_account_primary_credential_generate_totp(
    &self,
    id: &str
) -> Result<(Uuid, TotpSecret), ClientError>
[src]

pub fn idm_account_primary_credential_verify_totp(
    &self,
    id: &str,
    otp: u32,
    session: Uuid
) -> Result<(), ClientError>
[src]

pub fn idm_account_primary_credential_accept_sha1_totp(
    &self,
    id: &str,
    session: Uuid
) -> Result<(), ClientError>
[src]

pub fn idm_account_primary_credential_remove_totp(
    &self,
    id: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_primary_credential_register_webauthn(
    &self,
    id: &str,
    label: &str
) -> Result<(Uuid, CreationChallengeResponse), ClientError>
[src]

pub fn idm_account_primary_credential_complete_webuthn_registration(
    &self,
    id: &str,
    rego: RegisterPublicKeyCredential,
    session: Uuid
) -> Result<(), ClientError>
[src]

pub fn idm_account_primary_credential_remove_webauthn(
    &self,
    id: &str,
    label: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_primary_credential_generate_backup_code(
    &self,
    id: &str
) -> Result<Vec<String>, ClientError>
[src]

pub fn idm_account_primary_credential_remove_backup_code(
    &self,
    id: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_get_credential_status(
    &self,
    id: &str
) -> Result<CredentialStatus, ClientError>
[src]

pub fn idm_account_radius_credential_get(
    &self,
    id: &str
) -> Result<Option<String>, ClientError>
[src]

pub fn idm_account_radius_credential_regenerate(
    &self,
    id: &str
) -> Result<String, ClientError>
[src]

pub fn idm_account_radius_credential_delete(
    &self,
    id: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_radius_token_get(
    &self,
    id: &str
) -> Result<RadiusAuthToken, ClientError>
[src]

pub fn idm_account_unix_extend(
    &self,
    id: &str,
    gidnumber: Option<u32>,
    shell: Option<&str>
) -> Result<(), ClientError>
[src]

pub fn idm_account_unix_token_get(
    &self,
    id: &str
) -> Result<UnixUserToken, ClientError>
[src]

pub fn idm_account_unix_cred_put(
    &self,
    id: &str,
    cred: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_unix_cred_delete(&self, id: &str) -> Result<(), ClientError>[src]

pub fn idm_account_unix_cred_verify(
    &self,
    id: &str,
    cred: &str
) -> Result<Option<UnixUserToken>, ClientError>
[src]

pub fn idm_account_get_ssh_pubkeys(
    &self,
    id: &str
) -> Result<Vec<String>, ClientError>
[src]

pub fn idm_account_post_ssh_pubkey(
    &self,
    id: &str,
    tag: &str,
    pubkey: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_person_extend(&self, id: &str) -> Result<(), ClientError>[src]

pub fn idm_account_get_ssh_pubkey(
    &self,
    id: &str,
    tag: &str
) -> Result<Option<String>, ClientError>
[src]

pub fn idm_account_delete_ssh_pubkey(
    &self,
    id: &str,
    tag: &str
) -> Result<(), ClientError>
[src]

pub fn idm_domain_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_domain_get(&self, id: &str) -> Result<Entry, ClientError>[src]

pub fn idm_domain_get_ssid(&self, id: &str) -> Result<String, ClientError>[src]

pub fn idm_domain_set_ssid(
    &self,
    id: &str,
    ssid: &str
) -> Result<(), ClientError>
[src]

pub fn idm_schema_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_schema_attributetype_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_schema_attributetype_get(
    &self,
    id: &str
) -> Result<Option<Entry>, ClientError>
[src]

pub fn idm_schema_classtype_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_schema_classtype_get(
    &self,
    id: &str
) -> Result<Option<Entry>, ClientError>
[src]

pub fn idm_oauth2_rs_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_oauth2_rs_basic_create(
    &self,
    name: &str,
    origin: &str
) -> Result<(), ClientError>
[src]

pub fn idm_oauth2_rs_get(&self, id: &str) -> Result<Option<Entry>, ClientError>[src]

pub fn idm_oauth2_rs_update(
    &self,
    id: &str,
    name: Option<&str>,
    origin: Option<&str>,
    reset_secret: bool,
    reset_token_key: bool
) -> Result<(), ClientError>
[src]

pub fn idm_oauth2_rs_delete(&self, id: &str) -> Result<(), ClientError>[src]

pub fn recycle_bin_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn recycle_bin_get(&self, id: &str) -> Result<Option<Entry>, ClientError>[src]

pub fn recycle_bin_revive(&self, id: &str) -> Result<(), ClientError>[src]

Trait Implementations

impl Debug for KanidmClient[src]

Auto Trait Implementations

impl !RefUnwindSafe for KanidmClient

impl Send for KanidmClient

impl Sync for KanidmClient

impl Unpin for KanidmClient

impl !UnwindSafe for KanidmClient

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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