Struct github_webhook::payload_types::Membership
source · pub struct Membership<'a> {
pub url: &'a str,
pub state: &'a str,
pub role: &'a str,
pub organization_url: &'a str,
pub user: User<'a>,
}
Expand description
The membership between the user and the organization. Not present when the action is member_invited
.
Fields§
§url: &'a str
§state: &'a str
The state of the user’s membership in the team.
role: &'a str
The role of the user in the team.
organization_url: &'a str
§user: User<'a>
Trait Implementations§
source§impl<'a> Debug for Membership<'a>
impl<'a> Debug for Membership<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for Membership<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Membership<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Membership<'a>
impl<'a> Send for Membership<'a>
impl<'a> Sync for Membership<'a>
impl<'a> Unpin for Membership<'a>
impl<'a> UnwindSafe for Membership<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more