Struct twilight_model::guild::audit_log::AffectedRole
source · pub struct AffectedRole {
pub id: Id<RoleMarker>,
pub name: String,
}Expand description
Minimal amount of information about an affected role.
The following AuditLogChanges include this information:
Fields§
§id: Id<RoleMarker>ID of the role.
name: StringName of the role.
Trait Implementations§
source§impl Clone for AffectedRole
impl Clone for AffectedRole
source§fn clone(&self) -> AffectedRole
fn clone(&self) -> AffectedRole
Returns a copy 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 AffectedRole
impl Debug for AffectedRole
source§impl<'de> Deserialize<'de> for AffectedRole
impl<'de> Deserialize<'de> for AffectedRole
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 Hash for AffectedRole
impl Hash for AffectedRole
source§impl PartialEq<AffectedRole> for AffectedRole
impl PartialEq<AffectedRole> for AffectedRole
source§fn eq(&self, other: &AffectedRole) -> bool
fn eq(&self, other: &AffectedRole) -> bool
This method tests for
self and other values to be equal, and is used
by ==.