Struct kanidm_client::KanidmClient
source · pub struct KanidmClient { /* private fields */ }
Implementations§
source§impl KanidmClient
impl KanidmClient
sourcepub async fn idm_domain_delete_image(&self) -> Result<(), ClientError>
pub async fn idm_domain_delete_image(&self) -> Result<(), ClientError>
Clear the current domain logo/image
sourcepub async fn idm_domain_update_image(
&self,
image: ImageValue,
) -> Result<(), ClientError>
pub async fn idm_domain_update_image( &self, image: ImageValue, ) -> Result<(), ClientError>
Add or update the domain logo/image
source§impl KanidmClient
impl KanidmClient
pub async fn idm_group_search( &self, id: &str, ) -> Result<Vec<Entry>, ClientError>
pub async fn idm_group_purge_attr( &self, id: &str, attr: &str, ) -> Result<(), ClientError>
pub async fn group_account_policy_enable( &self, id: &str, ) -> Result<(), ClientError>
pub async fn group_rename( &self, name: &str, new_name: &str, ) -> Result<(), ClientError>
pub async fn group_account_policy_authsession_expiry_set( &self, id: &str, expiry: u32, ) -> Result<(), ClientError>
pub async fn group_account_policy_credential_type_minimum_set( &self, id: &str, value: &str, ) -> Result<(), ClientError>
pub async fn group_account_policy_password_minimum_length_set( &self, id: &str, length: u32, ) -> Result<(), ClientError>
pub async fn group_account_policy_privilege_expiry_set( &self, id: &str, expiry: u32, ) -> Result<(), ClientError>
pub async fn group_account_policy_webauthn_attestation_set( &self, id: &str, att_ca_list: &str, ) -> Result<(), ClientError>
pub async fn group_account_policy_limit_search_max_results( &self, id: &str, maximum: u32, ) -> Result<(), ClientError>
pub async fn group_account_policy_limit_search_max_filter_test( &self, id: &str, maximum: u32, ) -> Result<(), ClientError>
pub async fn group_account_policy_allow_primary_cred_fallback( &self, id: &str, allow: bool, ) -> Result<(), ClientError>
pub async fn idm_group_purge_mail(&self, id: &str) -> Result<(), ClientError>
pub async fn idm_group_set_mail<T: Serialize>( &self, id: &str, values: &[T], ) -> Result<(), ClientError>
pub async fn idm_group_get_mail( &self, id: &str, ) -> Result<Option<Vec<String>>, ClientError>
source§impl KanidmClient
impl KanidmClient
pub async fn idm_oauth2_rs_list(&self) -> Result<Vec<Entry>, ClientError>
pub async fn idm_oauth2_rs_basic_create( &self, name: &str, displayname: &str, origin: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_public_create( &self, name: &str, displayname: &str, origin: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_get( &self, id: &str, ) -> Result<Option<Entry>, ClientError>
pub async fn idm_oauth2_rs_get_basic_secret( &self, id: &str, ) -> Result<Option<String>, ClientError>
pub async fn idm_oauth2_rs_update( &self, id: &str, name: Option<&str>, displayname: Option<&str>, landing: Option<&str>, reset_secret: bool, reset_token_key: bool, reset_sign_key: bool, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_update_scope_map( &self, id: &str, group: &str, scopes: Vec<&str>, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_delete_scope_map( &self, id: &str, group: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_update_sup_scope_map( &self, id: &str, group: &str, scopes: Vec<&str>, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_delete_sup_scope_map( &self, id: &str, group: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_delete(&self, id: &str) -> Result<(), ClientError>
sourcepub async fn idm_oauth2_rs_delete_image(
&self,
id: &str,
) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_delete_image( &self, id: &str, ) -> Result<(), ClientError>
Want to delete the image associated with a resource server? Here’s your thing!
sourcepub async fn idm_oauth2_rs_update_image(
&self,
id: &str,
image: ImageValue,
) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_update_image( &self, id: &str, image: ImageValue, ) -> Result<(), ClientError>
Want to add/update the image associated with a resource server? Here’s your thing!
pub async fn idm_oauth2_rs_enable_pkce( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_disable_pkce( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_enable_legacy_crypto( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_disable_legacy_crypto( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_prefer_short_username( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_prefer_spn_username( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_enable_public_localhost_redirect( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_disable_public_localhost_redirect( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_enable_strict_redirect_uri( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_disable_strict_redirect_uri( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_update_claim_map( &self, id: &str, claim_name: &str, group_id: &str, values: &[String], ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_update_claim_map_join( &self, id: &str, claim_name: &str, join: Oauth2ClaimMapJoin, ) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_delete_claim_map( &self, id: &str, claim_name: &str, group_id: &str, ) -> Result<(), ClientError>
pub async fn idm_oauth2_client_add_origin( &self, id: &str, origin: &Url, ) -> Result<(), ClientError>
pub async fn idm_oauth2_client_remove_origin( &self, id: &str, origin: &Url, ) -> Result<(), ClientError>
pub async fn idm_oauth2_client_device_flow_update( &self, id: &str, value: bool, ) -> Result<(), ClientError>
source§impl KanidmClient
impl KanidmClient
pub async fn idm_person_account_list(&self) -> Result<Vec<Entry>, ClientError>
pub async fn idm_person_account_get( &self, id: &str, ) -> Result<Option<Entry>, ClientError>
pub async fn idm_person_search( &self, id: &str, ) -> Result<Vec<Entry>, ClientError>
pub async fn idm_person_account_create( &self, name: &str, displayname: &str, ) -> Result<(), ClientError>
pub async fn idm_person_account_update( &self, id: &str, newname: Option<&str>, displayname: Option<&str>, legalname: Option<&str>, mail: Option<&[String]>, ) -> Result<(), ClientError>
pub async fn idm_person_account_delete( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_person_account_add_attr( &self, id: &str, attr: &str, values: &[&str], ) -> Result<(), ClientError>
pub async fn idm_person_account_set_attr( &self, id: &str, attr: &str, values: &[&str], ) -> Result<(), ClientError>
pub async fn idm_person_account_get_attr( &self, id: &str, attr: &str, ) -> Result<Option<Vec<String>>, ClientError>
pub async fn idm_person_account_purge_attr( &self, id: &str, attr: &str, ) -> Result<(), ClientError>
pub async fn idm_person_account_get_credential_status( &self, id: &str, ) -> Result<CredentialStatus, ClientError>
pub async fn idm_person_account_primary_credential_set_password( &self, id: &str, pw: &str, ) -> Result<(), ClientError>
pub async fn idm_person_account_post_ssh_pubkey( &self, id: &str, tag: &str, pubkey: &str, ) -> Result<(), ClientError>
pub async fn idm_person_account_delete_ssh_pubkey( &self, id: &str, tag: &str, ) -> Result<(), ClientError>
pub async fn idm_person_account_unix_extend( &self, id: &str, gidnumber: Option<u32>, shell: Option<&str>, ) -> Result<(), ClientError>
pub async fn idm_person_account_unix_cred_put( &self, id: &str, cred: &str, ) -> Result<(), ClientError>
pub async fn idm_person_account_unix_cred_delete( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_person_identify_user( &self, id: &str, request: IdentifyUserRequest, ) -> Result<IdentifyUserResponse, ClientError>
pub async fn idm_account_radius_credential_get( &self, id: &str, ) -> Result<Option<String>, ClientError>
pub async fn idm_account_radius_credential_regenerate( &self, id: &str, ) -> Result<String, ClientError>
pub async fn idm_account_radius_credential_delete( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_account_list_user_auth_token( &self, id: &str, ) -> Result<Vec<UatStatus>, ClientError>
pub async fn idm_account_destroy_user_auth_token( &self, id: &str, token_id: Uuid, ) -> Result<(), ClientError>
pub async fn idm_person_certificate_list( &self, id: &str, ) -> Result<Vec<Entry>, ClientError>
pub async fn idm_person_certificate_create( &self, id: &str, pem_data: &str, ) -> Result<(), ClientError>
source§impl KanidmClient
impl KanidmClient
pub async fn scim_v1_sync_status(&self) -> Result<ScimSyncState, ClientError>
pub async fn scim_v1_sync_update( &self, scim_sync_request: &ScimSyncRequest, ) -> Result<(), ClientError>
sourcepub async fn scim_v1_entry_get(
&self,
name_or_uuid: &str,
query: Option<ScimEntryGetQuery>,
) -> Result<ScimEntryGeneric, ClientError>
pub async fn scim_v1_entry_get( &self, name_or_uuid: &str, query: Option<ScimEntryGetQuery>, ) -> Result<ScimEntryGeneric, ClientError>
Retrieve a Generic SCIM Entry as a JSON Value. This can retrieve any type of entry that Kanidm supports.
sourcepub async fn scim_v1_person_get(
&self,
name_or_uuid: &str,
query: Option<ScimEntryGetQuery>,
) -> Result<ScimEntryGeneric, ClientError>
pub async fn scim_v1_person_get( &self, name_or_uuid: &str, query: Option<ScimEntryGetQuery>, ) -> Result<ScimEntryGeneric, ClientError>
Retrieve a Person as a SCIM JSON Value.
source§impl KanidmClient
impl KanidmClient
pub async fn idm_service_account_list(&self) -> Result<Vec<Entry>, ClientError>
pub async fn idm_service_account_get( &self, id: &str, ) -> Result<Option<Entry>, ClientError>
sourcepub async fn idm_service_account_create(
&self,
name: &str,
displayname: &str,
entry_managed_by: &str,
) -> Result<(), ClientError>
pub async fn idm_service_account_create( &self, name: &str, displayname: &str, entry_managed_by: &str, ) -> Result<(), ClientError>
Handles creating a service account
pub async fn idm_service_account_delete( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_service_account_update( &self, id: &str, newname: Option<&str>, displayname: Option<&str>, entry_managed_by: Option<&str>, mail: Option<&[String]>, ) -> Result<(), ClientError>
pub async fn idm_service_account_add_attr( &self, id: &str, attr: &str, values: &[&str], ) -> Result<(), ClientError>
pub async fn idm_service_account_set_attr( &self, id: &str, attr: &str, values: &[&str], ) -> Result<(), ClientError>
pub async fn idm_service_account_get_attr( &self, id: &str, attr: &str, ) -> Result<Option<Vec<String>>, ClientError>
pub async fn idm_service_account_purge_attr( &self, id: &str, attr: &str, ) -> Result<(), ClientError>
pub async fn idm_service_account_post_ssh_pubkey( &self, id: &str, tag: &str, pubkey: &str, ) -> Result<(), ClientError>
pub async fn idm_service_account_delete_ssh_pubkey( &self, id: &str, tag: &str, ) -> Result<(), ClientError>
pub async fn idm_service_account_unix_extend( &self, id: &str, gidnumber: Option<u32>, shell: Option<&str>, ) -> Result<(), ClientError>
pub async fn idm_service_account_into_person( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_service_account_get_credential_status( &self, id: &str, ) -> Result<CredentialStatus, ClientError>
pub async fn idm_service_account_generate_password( &self, id: &str, ) -> Result<String, ClientError>
pub async fn idm_service_account_list_api_token( &self, id: &str, ) -> Result<Vec<ApiToken>, ClientError>
pub async fn idm_service_account_generate_api_token( &self, id: &str, label: &str, expiry: Option<OffsetDateTime>, read_write: bool, ) -> Result<String, ClientError>
pub async fn idm_service_account_destroy_api_token( &self, id: &str, token_id: Uuid, ) -> Result<(), ClientError>
source§impl KanidmClient
impl KanidmClient
pub async fn idm_sync_account_list(&self) -> Result<Vec<Entry>, ClientError>
pub async fn idm_sync_account_get( &self, id: &str, ) -> Result<Option<Entry>, ClientError>
pub async fn idm_sync_account_set_credential_portal( &self, id: &str, url: Option<&Url>, ) -> Result<(), ClientError>
pub async fn idm_sync_account_get_credential_portal( &self, id: &str, ) -> Result<Option<Url>, ClientError>
pub async fn idm_sync_account_set_yield_attributes( &self, id: &str, attrs: &Vec<String>, ) -> Result<(), ClientError>
pub async fn idm_sync_account_create( &self, name: &str, description: Option<&str>, ) -> Result<(), ClientError>
sourcepub async fn idm_sync_account_generate_token(
&self,
id: &str,
label: &str,
) -> Result<String, ClientError>
pub async fn idm_sync_account_generate_token( &self, id: &str, label: &str, ) -> Result<String, ClientError>
Creates a sync token for a given sync account
pub async fn idm_sync_account_destroy_token( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_sync_account_force_refresh( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_sync_account_finalise( &self, id: &str, ) -> Result<(), ClientError>
pub async fn idm_sync_account_terminate( &self, id: &str, ) -> Result<(), ClientError>
source§impl KanidmClient
impl KanidmClient
pub async fn system_password_badlist_get( &self, ) -> Result<Vec<String>, ClientError>
pub async fn system_password_badlist_append( &self, list: Vec<String>, ) -> Result<(), ClientError>
pub async fn system_password_badlist_remove( &self, list: Vec<String>, ) -> Result<(), ClientError>
pub async fn system_denied_names_get(&self) -> Result<Vec<String>, ClientError>
pub async fn system_denied_names_append( &self, list: &Vec<String>, ) -> Result<(), ClientError>
pub async fn system_denied_names_remove( &self, list: &Vec<String>, ) -> Result<(), ClientError>
source§impl KanidmClient
impl KanidmClient
pub fn get_origin(&self) -> &Url
sourcepub fn make_url(&self, endpoint: &str) -> Url
pub fn make_url(&self, endpoint: &str) -> Url
Get a URL based on adding an endpoint to the base URL of the server
pub async fn set_token(&self, new_token: String)
pub async fn get_token(&self) -> Option<String>
pub fn new_session(&self) -> Result<Self, ClientError>
pub async fn logout(&self) -> Result<(), ClientError>
pub fn get_token_cache_path(&self) -> String
sourcepub fn handle_response_error(&self, error: Error) -> ClientError
pub fn handle_response_error(&self, error: Error) -> ClientError
You’ve got the response from a reqwest and you want to turn it into a ClientError
pub async fn perform_post_request<R: Serialize, T: DeserializeOwned>( &self, dest: &str, request: R, ) -> Result<T, ClientError>
pub async fn perform_patch_request<R: Serialize, T: DeserializeOwned>( &self, dest: &str, request: R, ) -> Result<T, ClientError>
pub async fn perform_get_request<T: DeserializeOwned>( &self, dest: &str, ) -> Result<T, ClientError>
pub async fn perform_get_request_query<T: DeserializeOwned, Q: Serialize + Debug>( &self, dest: &str, query: Option<Q>, ) -> Result<T, ClientError>
pub async fn auth_step_init( &self, ident: &str, ) -> Result<Set<AuthMech>, ClientError>
pub async fn auth_step_begin( &self, mech: AuthMech, ) -> Result<Vec<AuthAllowed>, ClientError>
pub async fn auth_step_anonymous(&self) -> Result<AuthResponse, ClientError>
pub async fn auth_step_password( &self, password: &str, ) -> Result<AuthResponse, ClientError>
pub async fn auth_step_backup_code( &self, backup_code: &str, ) -> Result<AuthResponse, ClientError>
pub async fn auth_step_totp( &self, totp: u32, ) -> Result<AuthResponse, ClientError>
pub async fn auth_step_securitykey_complete( &self, pkc: Box<PublicKeyCredential>, ) -> Result<AuthResponse, ClientError>
pub async fn auth_step_passkey_complete( &self, pkc: Box<PublicKeyCredential>, ) -> Result<AuthResponse, ClientError>
pub async fn auth_anonymous(&self) -> Result<(), ClientError>
pub async fn auth_simple_password( &self, ident: &str, password: &str, ) -> Result<(), ClientError>
pub async fn auth_password_totp( &self, ident: &str, password: &str, totp: u32, ) -> Result<(), ClientError>
pub async fn auth_password_backup_code( &self, ident: &str, password: &str, backup_code: &str, ) -> Result<(), ClientError>
pub async fn auth_passkey_begin( &self, ident: &str, ) -> Result<RequestChallengeResponse, ClientError>
pub async fn auth_passkey_complete( &self, pkc: Box<PublicKeyCredential>, ) -> Result<(), ClientError>
pub async fn reauth_begin(&self) -> Result<Vec<AuthAllowed>, ClientError>
pub async fn reauth_simple_password( &self, password: &str, ) -> Result<(), ClientError>
pub async fn reauth_password_totp( &self, password: &str, totp: u32, ) -> Result<(), ClientError>
pub async fn reauth_passkey_begin( &self, ) -> Result<RequestChallengeResponse, ClientError>
pub async fn reauth_passkey_complete( &self, pkc: Box<PublicKeyCredential>, ) -> Result<(), ClientError>
pub async fn auth_valid(&self) -> Result<(), ClientError>
pub async fn get_public_jwk(&self, key_id: &str) -> Result<Jwk, ClientError>
pub async fn whoami(&self) -> Result<Option<Entry>, ClientError>
pub async fn search(&self, filter: Filter) -> Result<Vec<Entry>, ClientError>
pub async fn create(&self, entries: Vec<Entry>) -> Result<(), ClientError>
pub async fn modify( &self, filter: Filter, modlist: ModifyList, ) -> Result<(), ClientError>
pub async fn delete(&self, filter: Filter) -> Result<(), ClientError>
pub async fn idm_group_list(&self) -> Result<Vec<Entry>, ClientError>
pub async fn idm_group_get( &self, id: &str, ) -> Result<Option<Entry>, ClientError>
pub async fn idm_group_get_members( &self, id: &str, ) -> Result<Option<Vec<String>>, ClientError>
pub async fn idm_group_create( &self, name: &str, entry_managed_by: Option<&str>, ) -> Result<(), ClientError>
pub async fn idm_group_set_entry_managed_by( &self, id: &str, entry_manager: &str, ) -> Result<(), ClientError>
pub async fn idm_group_set_members( &self, id: &str, members: &[&str], ) -> Result<(), ClientError>
pub async fn idm_group_add_members( &self, id: &str, members: &[&str], ) -> Result<(), ClientError>
pub async fn idm_group_remove_members( &self, group: &str, members: &[&str], ) -> Result<(), ClientError>
pub async fn idm_group_purge_members(&self, id: &str) -> Result<(), ClientError>
pub async fn idm_group_unix_extend( &self, id: &str, gidnumber: Option<u32>, ) -> Result<(), ClientError>
pub async fn idm_group_unix_token_get( &self, id: &str, ) -> Result<UnixGroupToken, ClientError>
pub async fn idm_group_delete(&self, id: &str) -> Result<(), ClientError>
pub async fn idm_account_unix_token_get( &self, id: &str, ) -> Result<UnixUserToken, ClientError>
pub async fn idm_person_account_credential_update_intent( &self, id: &str, ttl: Option<u32>, ) -> Result<CUIntentToken, ClientError>
pub async fn idm_account_credential_update_begin( &self, id: &str, ) -> Result<(CUSessionToken, CUStatus), ClientError>
pub async fn idm_account_credential_update_exchange( &self, intent_token: String, ) -> Result<(CUSessionToken, CUStatus), ClientError>
pub async fn idm_account_credential_update_status( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_set_password( &self, session_token: &CUSessionToken, pw: &str, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_cancel_mfareg( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_init_totp( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_check_totp( &self, session_token: &CUSessionToken, totp_chal: u32, label: &str, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_accept_sha1_totp( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_remove_totp( &self, session_token: &CUSessionToken, label: &str, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_backup_codes_generate( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_primary_remove( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_set_unix_password( &self, session_token: &CUSessionToken, pw: &str, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_unix_remove( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_sshkey_add( &self, session_token: &CUSessionToken, label: String, key: SshPublicKey, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_sshkey_remove( &self, session_token: &CUSessionToken, label: String, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_passkey_init( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_passkey_finish( &self, session_token: &CUSessionToken, label: String, registration: RegisterPublicKeyCredential, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_passkey_remove( &self, session_token: &CUSessionToken, uuid: Uuid, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_attested_passkey_init( &self, session_token: &CUSessionToken, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_attested_passkey_finish( &self, session_token: &CUSessionToken, label: String, registration: RegisterPublicKeyCredential, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_attested_passkey_remove( &self, session_token: &CUSessionToken, uuid: Uuid, ) -> Result<CUStatus, ClientError>
pub async fn idm_account_credential_update_commit( &self, session_token: &CUSessionToken, ) -> Result<(), ClientError>
pub async fn idm_account_radius_token_get( &self, id: &str, ) -> Result<RadiusAuthToken, ClientError>
pub async fn idm_account_unix_cred_verify( &self, id: &str, cred: &str, ) -> Result<Option<UnixUserToken>, ClientError>
pub async fn idm_account_get_ssh_pubkey( &self, id: &str, tag: &str, ) -> Result<Option<String>, ClientError>
pub async fn idm_account_get_ssh_pubkeys( &self, id: &str, ) -> Result<Vec<String>, ClientError>
pub async fn idm_domain_get(&self) -> Result<Entry, ClientError>
sourcepub async fn idm_domain_set_display_name(
&self,
new_display_name: &str,
) -> Result<(), ClientError>
pub async fn idm_domain_set_display_name( &self, new_display_name: &str, ) -> Result<(), ClientError>
Sets the domain display name using a PUT request
pub async fn idm_domain_set_ldap_basedn( &self, new_basedn: &str, ) -> Result<(), ClientError>
pub async fn idm_set_ldap_allow_unix_password_bind( &self, enable: bool, ) -> Result<(), ClientError>
pub async fn idm_domain_get_ssid(&self) -> Result<String, ClientError>
pub async fn idm_domain_set_ssid(&self, ssid: &str) -> Result<(), ClientError>
pub async fn idm_domain_revoke_key( &self, key_id: &str, ) -> Result<(), ClientError>
pub async fn idm_schema_list(&self) -> Result<Vec<Entry>, ClientError>
pub async fn idm_schema_attributetype_list( &self, ) -> Result<Vec<Entry>, ClientError>
pub async fn idm_schema_attributetype_get( &self, id: &str, ) -> Result<Option<Entry>, ClientError>
pub async fn idm_schema_classtype_list(&self) -> Result<Vec<Entry>, ClientError>
pub async fn idm_schema_classtype_get( &self, id: &str, ) -> Result<Option<Entry>, ClientError>
pub async fn recycle_bin_list(&self) -> Result<Vec<Entry>, ClientError>
pub async fn recycle_bin_get( &self, id: &str, ) -> Result<Option<Entry>, ClientError>
pub async fn recycle_bin_revive(&self, id: &str) -> Result<(), ClientError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KanidmClient
impl !RefUnwindSafe for KanidmClient
impl Send for KanidmClient
impl Sync for KanidmClient
impl Unpin for KanidmClient
impl !UnwindSafe for KanidmClient
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