[][src]Struct octocrab::teams::CreateTeamBuilder

pub struct CreateTeamBuilder<'octo, 'h, 'a, 'b> { /* fields omitted */ }

Implementations

impl<'octo, 'h, 'a, 'b> CreateTeamBuilder<'octo, 'h, 'a, 'b>[src]

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

The description of the team.

pub fn maintainers(self, maintainers: &'a impl AsRef<[String]> + ?Sized) -> Self[src]

The organization members who will become team maintainers.

pub fn repo_names(self, repo_names: &'b impl AsRef<[String]> + ?Sized) -> Self[src]

The repositories to add the team to.

Note: the repo name must be its full name, e.g. "org/repo".

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, 'h, 'a, 'b> Serialize for CreateTeamBuilder<'octo, 'h, 'a, 'b>[src]

Auto Trait Implementations

impl<'octo, 'h, 'a, 'b> !RefUnwindSafe for CreateTeamBuilder<'octo, 'h, 'a, 'b>

impl<'octo, 'h, 'a, 'b> Send for CreateTeamBuilder<'octo, 'h, 'a, 'b>

impl<'octo, 'h, 'a, 'b> Sync for CreateTeamBuilder<'octo, 'h, 'a, 'b>

impl<'octo, 'h, 'a, 'b> Unpin for CreateTeamBuilder<'octo, 'h, 'a, 'b> where
    'octo: 'h, 

impl<'octo, 'h, 'a, 'b> !UnwindSafe for CreateTeamBuilder<'octo, 'h, 'a, 'b>

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.