pub struct WebhookMemberAddedChangesPermission {
pub to: To,
}
Expand description
WebhookMemberAddedChangesPermission : This field is included for legacy purposes; use the role_name
field instead. The maintain
role is mapped to write
and the triage
role is mapped to read
. To determine the role assigned to the collaborator, use the role_name
field instead, which will provide the full role name, including custom roles.
Fields§
§to: To
Implementations§
Source§impl WebhookMemberAddedChangesPermission
impl WebhookMemberAddedChangesPermission
Sourcepub fn new(to: To) -> WebhookMemberAddedChangesPermission
pub fn new(to: To) -> WebhookMemberAddedChangesPermission
This field is included for legacy purposes; use the role_name
field instead. The maintain
role is mapped to write
and the triage
role is mapped to read
. To determine the role assigned to the collaborator, use the role_name
field instead, which will provide the full role name, including custom roles.
Trait Implementations§
Source§impl Clone for WebhookMemberAddedChangesPermission
impl Clone for WebhookMemberAddedChangesPermission
Source§fn clone(&self) -> WebhookMemberAddedChangesPermission
fn clone(&self) -> WebhookMemberAddedChangesPermission
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 Default for WebhookMemberAddedChangesPermission
impl Default for WebhookMemberAddedChangesPermission
Source§fn default() -> WebhookMemberAddedChangesPermission
fn default() -> WebhookMemberAddedChangesPermission
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookMemberAddedChangesPermission
impl<'de> Deserialize<'de> for WebhookMemberAddedChangesPermission
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 PartialEq for WebhookMemberAddedChangesPermission
impl PartialEq for WebhookMemberAddedChangesPermission
Source§fn eq(&self, other: &WebhookMemberAddedChangesPermission) -> bool
fn eq(&self, other: &WebhookMemberAddedChangesPermission) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for WebhookMemberAddedChangesPermission
Auto Trait Implementations§
impl Freeze for WebhookMemberAddedChangesPermission
impl RefUnwindSafe for WebhookMemberAddedChangesPermission
impl Send for WebhookMemberAddedChangesPermission
impl Sync for WebhookMemberAddedChangesPermission
impl Unpin for WebhookMemberAddedChangesPermission
impl UnwindSafe for WebhookMemberAddedChangesPermission
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