pub struct OrgsClient { /* private fields */ }Implementations§
Source§impl OrgsClient
impl OrgsClient
pub async fn list(&self) -> Result<Value, SdkError>
pub async fn list_with(&self, params: ListOrgsParams) -> Result<Value, SdkError>
Sourcepub async fn get_by_name(
&self,
name: &str,
mode: NameMatch,
) -> Result<Value, SdkError>
pub async fn get_by_name( &self, name: &str, mode: NameMatch, ) -> Result<Value, SdkError>
Resolve a single organization by localized display name.
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>
Sourcepub async fn resolve(
&self,
org_id: &str,
body: &Value,
) -> Result<Value, SdkError>
pub async fn resolve( &self, org_id: &str, body: &Value, ) -> Result<Value, SdkError>
POST /orgs/{id}/resolve — natural-language entity/portal resolution.
Sourcepub async fn create_alias(
&self,
org_id: &str,
body: &Value,
) -> Result<Value, SdkError>
pub async fn create_alias( &self, org_id: &str, body: &Value, ) -> Result<Value, SdkError>
POST /orgs/{id}/aliases
pub async fn list_aliases(&self, org_id: &str) -> Result<Value, SdkError>
pub async fn copilot_chat( &self, org_id: &str, body: &Value, ) -> Result<Value, SdkError>
pub async fn copilot_commit( &self, org_id: &str, body: &Value, ) -> Result<Value, 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 !RefUnwindSafe for OrgsClient
impl !UnwindSafe for OrgsClient
impl Freeze for OrgsClient
impl Send for OrgsClient
impl Sync for OrgsClient
impl Unpin for OrgsClient
impl UnsafeUnpin 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