pub struct Groups {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Groups
impl Groups
Sourcepub async fn get(
&self,
alt: Alt,
group_unique_id: &str,
) -> Result<Response<Groups>, ClientError>
pub async fn get( &self, alt: Alt, group_unique_id: &str, ) -> Result<Response<Groups>, ClientError>
This function performs a GET to the /{groupUniqueId} endpoint.
Gets one resource by id.
Parameters:
group_unique_id: &str– Identifies whether members external to your organization can join the group. Possible values are:
- true: G Suite users external to your organization can become members of this group.
- false: Users not belonging to the organization are not allowed to become members of this group.
Sourcepub async fn update(
&self,
alt: Alt,
group_unique_id: &str,
body: &Groups,
) -> Result<Response<Groups>, ClientError>
pub async fn update( &self, alt: Alt, group_unique_id: &str, body: &Groups, ) -> Result<Response<Groups>, ClientError>
This function performs a PUT to the /{groupUniqueId} endpoint.
Updates an existing resource.
Parameters:
group_unique_id: &str– Identifies whether members external to your organization can join the group. Possible values are:
- true: G Suite users external to your organization can become members of this group.
- false: Users not belonging to the organization are not allowed to become members of this group.
Sourcepub async fn patch(
&self,
alt: Alt,
group_unique_id: &str,
body: &Groups,
) -> Result<Response<Groups>, ClientError>
pub async fn patch( &self, alt: Alt, group_unique_id: &str, body: &Groups, ) -> Result<Response<Groups>, ClientError>
This function performs a PATCH to the /{groupUniqueId} endpoint.
Updates an existing resource. This method supports patch semantics.
Parameters:
group_unique_id: &str– Identifies whether members external to your organization can join the group. Possible values are:
- true: G Suite users external to your organization can become members of this group.
- false: Users not belonging to the organization are not allowed to become members of this group.
Auto Trait Implementations§
impl Freeze for Groups
impl !RefUnwindSafe for Groups
impl Send for Groups
impl Sync for Groups
impl Unpin for Groups
impl !UnwindSafe for Groups
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
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