[][src]Struct heroku_rs::endpoints::teams::put::TeamInvitationCreateParams

pub struct TeamInvitationCreateParams<'a> {
    pub email: &'a str,
    pub role: Option<&'a str>,
}

Create a new team invitation with parameters

role parameter is nullable, meaning, if you pass (None), it will be sent as null to the Heroku API

See Heroku documentation for more information about these paramters

Fields

email: &'a str

unique email address

role: Option<&'a str>

Even though marked with Option, this parameter is NOT optional. role in the team one of:"admin" or "collaborator" or "member" or "owner" or null. [Nullable]

Trait Implementations

impl<'a> Clone for TeamInvitationCreateParams<'a>[src]

impl<'a> Debug for TeamInvitationCreateParams<'a>[src]

impl<'a> HerokuEndpoint<TeamInvitation, (), TeamInvitationCreateParams<'a>> for TeamInvitationCreate<'a>[src]

impl<'a> Serialize for TeamInvitationCreateParams<'a>[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.