pub enum CommunityRole {
Dominant,
Keystone,
Foundation,
Rare,
Invasive,
Native,
Unknown,
Custom(String),
}Variants§
Trait Implementations§
Source§impl Clone for CommunityRole
impl Clone for CommunityRole
Source§fn clone(&self) -> CommunityRole
fn clone(&self) -> CommunityRole
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 CommunityRole
impl Debug for CommunityRole
Source§impl Display for CommunityRole
impl Display for CommunityRole
Source§impl FromStr for CommunityRole
impl FromStr for CommunityRole
Source§type Err = CommunityRoleParseError
type Err = CommunityRoleParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<CommunityRole, <CommunityRole as FromStr>::Err>
fn from_str( value: &str, ) -> Result<CommunityRole, <CommunityRole as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for CommunityRole
impl Hash for CommunityRole
Source§impl Ord for CommunityRole
impl Ord for CommunityRole
Source§fn cmp(&self, other: &CommunityRole) -> Ordering
fn cmp(&self, other: &CommunityRole) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CommunityRole
impl PartialEq for CommunityRole
Source§impl PartialOrd for CommunityRole
impl PartialOrd for CommunityRole
impl Eq for CommunityRole
impl StructuralPartialEq for CommunityRole
Auto Trait Implementations§
impl Freeze for CommunityRole
impl RefUnwindSafe for CommunityRole
impl Send for CommunityRole
impl Sync for CommunityRole
impl Unpin for CommunityRole
impl UnsafeUnpin for CommunityRole
impl UnwindSafe for CommunityRole
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