[−][src]Struct octocrab::teams::CreateTeamBuilder
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,
'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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,