Struct heroku_rs::endpoints::collaborators::patch::TeamCollaboratorUpdate [−][src]
pub struct TeamCollaboratorUpdate<'a> { pub app_id: &'a str, pub collaborator_id: &'a str, pub params: TeamCollaboratorUpdateParams<'a>, }
Expand description
Team App Collaborator Update
Update an existing collaborator from a team app.
See Heroku documentation for more information about this endpoint
Example:
TeamCollaboratorUpdate takes three required parameters, app_id, collaborator_id and a list of permissions, and returns the updated TeamCollaborator
.
use heroku_rs::prelude::*; let permissions = vec!["view"]; let response = api_client.request(&TeamCollaboratorUpdate::new( "APP_ID", "COLLABORATOR_ID", permissions, )); match response { Ok(success) => println!("Success: {:#?}", success), Err(e) => println!("Error: {}", e), }
See how to create the Heroku api_client
.
Fields
app_id: &'a str
app_id can be the app name or the app id
collaborator_id: &'a str
collaborator_id can be the collaborator email or id.
params: TeamCollaboratorUpdateParams<'a>
The parameters to pass to the Heroku API
Implementations
impl<'a> TeamCollaboratorUpdate<'a>
[src]
impl<'a> TeamCollaboratorUpdate<'a>
[src]Trait Implementations
impl<'a> HerokuEndpoint<TeamCollaborator, (), TeamCollaboratorUpdateParams<'a>> for TeamCollaboratorUpdate<'a>
[src]
impl<'a> HerokuEndpoint<TeamCollaborator, (), TeamCollaboratorUpdateParams<'a>> for TeamCollaboratorUpdate<'a>
[src]fn method(&self) -> Method
[src]
fn path(&self) -> String
[src]
fn body(&self) -> Option<TeamCollaboratorUpdateParams<'a>>
[src]
fn query(&self) -> Option<QueryType>
[src]
fn url(&self, environment: &ApiEnvironment) -> Url
[src]
fn content_type(&self) -> &str
[src]
fn version(&self) -> &str
[src]
fn agent(&self) -> &str
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for TeamCollaboratorUpdate<'a>
impl<'a> Send for TeamCollaboratorUpdate<'a>
impl<'a> Sync for TeamCollaboratorUpdate<'a>
impl<'a> Unpin for TeamCollaboratorUpdate<'a>
impl<'a> UnwindSafe for TeamCollaboratorUpdate<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]