[][src]Struct octocrab::teams::EditTeamBuilder

pub struct EditTeamBuilder<'octo, 'r> { /* fields omitted */ }

Implementations

impl<'octo, 'r> EditTeamBuilder<'octo, 'r>[src]

pub fn description(self, description: impl Into<String>) -> Self[src]

The description of the team.

pub fn privacy(self, privacy: impl Into<Privacy>) -> Self[src]

The level of privacy this team should have.

For parents or child teams, only Privacy::Closed is valid.

pub fn parent_team_id(self, parent_team_id: impl Into<u64>) -> Self[src]

The ID of the team to set as the parent team.

pub async fn send(self) -> Result<Team>[src]

Sends the actual request.

Trait Implementations

impl<'octo, 'r> Serialize for EditTeamBuilder<'octo, 'r>[src]

Auto Trait Implementations

impl<'octo, 'r> !RefUnwindSafe for EditTeamBuilder<'octo, 'r>

impl<'octo, 'r> Send for EditTeamBuilder<'octo, 'r>

impl<'octo, 'r> Sync for EditTeamBuilder<'octo, 'r>

impl<'octo, 'r> Unpin for EditTeamBuilder<'octo, 'r> where
    'octo: 'r, 

impl<'octo, 'r> !UnwindSafe for EditTeamBuilder<'octo, 'r>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.