pub struct Membership {
pub organization_url: String,
pub role: String,
pub state: String,
pub url: String,
pub user: User,
}
Expand description
The membership between the user and the organization. Not present when the action is member_invited
.
JSON schema
{
"title": "Membership",
"description": "The membership between the user and the organization. Not present when the action is `member_invited`.",
"type": "object",
"required": [
"organization_url",
"role",
"state",
"url",
"user"
],
"properties": {
"organization_url": {
"type": "string",
"format": "uri"
},
"role": {
"description": "The role of the user in the team.",
"type": "string"
},
"state": {
"description": "The state of the user's membership in the team.",
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"user": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§organization_url: String
§role: String
The role of the user in the team.
state: String
The state of the user’s membership in the team.
url: String
§user: User
Implementations§
Source§impl Membership
impl Membership
pub fn builder() -> Membership
Trait Implementations§
Source§impl Clone for Membership
impl Clone for Membership
Source§fn clone(&self) -> Membership
fn clone(&self) -> Membership
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Membership
impl Debug for Membership
Source§impl<'de> Deserialize<'de> for Membership
impl<'de> Deserialize<'de> for Membership
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
Source§impl From<&Membership> for Membership
impl From<&Membership> for Membership
Source§fn from(value: &Membership) -> Self
fn from(value: &Membership) -> Self
Converts to this type from the input type.
Source§impl From<Membership> for Membership
impl From<Membership> for Membership
Source§fn from(value: Membership) -> Self
fn from(value: Membership) -> Self
Converts to this type from the input type.
Source§impl Serialize for Membership
impl Serialize for Membership
Source§impl TryFrom<Membership> for Membership
impl TryFrom<Membership> for Membership
Auto Trait Implementations§
impl Freeze for Membership
impl RefUnwindSafe for Membership
impl Send for Membership
impl Sync for Membership
impl Unpin for Membership
impl UnwindSafe for Membership
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