pub enum LibraryRole {
Admin,
Read,
Write,
None,
}Variants§
Trait Implementations§
Source§impl Clone for LibraryRole
impl Clone for LibraryRole
Source§fn clone(&self) -> LibraryRole
fn clone(&self) -> LibraryRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LibraryRole
impl Debug for LibraryRole
Source§impl Default for LibraryRole
impl Default for LibraryRole
Source§fn default() -> LibraryRole
fn default() -> LibraryRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LibraryRole
impl<'de> Deserialize<'de> for LibraryRole
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LibraryRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LibraryRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LibraryRole
impl Display for LibraryRole
Source§impl From<u8> for &LibraryRole
impl From<u8> for &LibraryRole
Source§fn from(level: u8) -> &LibraryRole
fn from(level: u8) -> &LibraryRole
Converts to this type from the input type.
Source§impl FromStr for LibraryRole
impl FromStr for LibraryRole
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<LibraryRole, <LibraryRole as FromStr>::Err>
fn from_str(s: &str) -> Result<LibraryRole, <LibraryRole as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for LibraryRole
impl PartialEq for LibraryRole
Source§impl PartialOrd for LibraryRole
impl PartialOrd for LibraryRole
Source§impl Serialize for LibraryRole
impl Serialize for LibraryRole
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LibraryRole
Source§impl TryFrom<&str> for LibraryRole
impl TryFrom<&str> for LibraryRole
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<LibraryRole, <LibraryRole as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<LibraryRole, <LibraryRole as TryFrom<&str>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Forget for LibraryRole
impl Freeze for LibraryRole
impl Move for LibraryRole
impl RefUnwindSafe for LibraryRole
impl Send for LibraryRole
impl Sync for LibraryRole
impl Unpin for LibraryRole
impl UnsafeUnpin for LibraryRole
impl UnwindSafe for LibraryRole
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