pub struct OrgsClient { /* private fields */ }Implementations§
Source§impl OrgsClient
impl OrgsClient
pub async fn list(&self) -> Result<PaginatedResponse, SdkError>
pub async fn create( &self, body: &CreateOrganizationRequest, ) -> Result<OrganizationResponse, SdkError>
pub async fn get(&self, id: &str) -> Result<OrganizationResponse, SdkError>
pub async fn update( &self, id: &str, body: &UpdateOrganizationRequest, ) -> Result<OrganizationResponse, SdkError>
pub async fn delete(&self, id: &str) -> Result<(), SdkError>
pub async fn purge(&self, id: &str) -> Result<(), SdkError>
pub async fn permissions( &self, id: &str, ) -> Result<OrgPermissionsResponse, SdkError>
pub async fn users(&self, org_id: &str) -> Result<PaginatedResponse, SdkError>
Trait Implementations§
Source§impl Clone for OrgsClient
impl Clone for OrgsClient
Source§fn clone(&self) -> OrgsClient
fn clone(&self) -> OrgsClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OrgsClient
impl !RefUnwindSafe for OrgsClient
impl Send for OrgsClient
impl Sync for OrgsClient
impl Unpin for OrgsClient
impl UnsafeUnpin for OrgsClient
impl !UnwindSafe for OrgsClient
Blanket Implementations§
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