pub struct ScimClient { /* private fields */ }Expand description
SCIM 2.0 client for provisioning users and groups.
Implementations§
Source§impl ScimClient
impl ScimClient
Sourcepub fn new(config: ScimClientConfig) -> Result<Self>
pub fn new(config: ScimClientConfig) -> Result<Self>
Create a new SCIM client.
Sourcepub async fn create_user(&self, user: &ScimUser) -> Result<ScimUser>
pub async fn create_user(&self, user: &ScimUser) -> Result<ScimUser>
Create a user (POST /Users).
Sourcepub async fn replace_user(&self, id: &str, user: &ScimUser) -> Result<ScimUser>
pub async fn replace_user(&self, id: &str, user: &ScimUser) -> Result<ScimUser>
Replace a user (PUT /Users/{id}).
Sourcepub async fn patch_user(&self, id: &str, patch: &PatchOp) -> Result<ScimUser>
pub async fn patch_user(&self, id: &str, patch: &PatchOp) -> Result<ScimUser>
Patch a user (PATCH /Users/{id}).
Sourcepub async fn delete_user(&self, id: &str) -> Result<()>
pub async fn delete_user(&self, id: &str) -> Result<()>
Delete a user (DELETE /Users/{id}).
Sourcepub async fn list_users(
&self,
filter: Option<&str>,
start_index: Option<u64>,
count: Option<u64>,
) -> Result<ListResponse<ScimUser>>
pub async fn list_users( &self, filter: Option<&str>, start_index: Option<u64>, count: Option<u64>, ) -> Result<ListResponse<ScimUser>>
List users with optional filter (GET /Users?filter=…).
Sourcepub async fn create_group(&self, group: &ScimGroup) -> Result<ScimGroup>
pub async fn create_group(&self, group: &ScimGroup) -> Result<ScimGroup>
Create a group (POST /Groups).
Sourcepub async fn get_group(&self, id: &str) -> Result<ScimGroup>
pub async fn get_group(&self, id: &str) -> Result<ScimGroup>
Get a group by ID (GET /Groups/{id}).
Sourcepub async fn delete_group(&self, id: &str) -> Result<()>
pub async fn delete_group(&self, id: &str) -> Result<()>
Delete a group (DELETE /Groups/{id}).
Sourcepub async fn list_groups(
&self,
filter: Option<&str>,
start_index: Option<u64>,
count: Option<u64>,
) -> Result<ListResponse<ScimGroup>>
pub async fn list_groups( &self, filter: Option<&str>, start_index: Option<u64>, count: Option<u64>, ) -> Result<ListResponse<ScimGroup>>
List groups with optional filter (GET /Groups?filter=…).
Sourcepub async fn bulk(&self, request: &BulkRequest) -> Result<BulkResponse>
pub async fn bulk(&self, request: &BulkRequest) -> Result<BulkResponse>
Execute a bulk request (POST /Bulk).
Sourcepub async fn get_service_provider_config(&self) -> Result<ServiceProviderConfig>
pub async fn get_service_provider_config(&self) -> Result<ServiceProviderConfig>
Retrieve the service provider configuration.
Auto Trait Implementations§
impl Freeze for ScimClient
impl !RefUnwindSafe for ScimClient
impl Send for ScimClient
impl Sync for ScimClient
impl Unpin for ScimClient
impl UnsafeUnpin for ScimClient
impl !UnwindSafe for ScimClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more