#[repr(C)]pub enum RequesterType {
USER = 0,
APP = 1,
SYSTEM = 2,
}
Expand description
Type of requester
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
Trait Implementations§
Source§impl Clone for RequesterType
impl Clone for RequesterType
Source§fn clone(&self) -> RequesterType
fn clone(&self) -> RequesterType
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 RequesterType
impl Debug for RequesterType
Source§impl<'de> Deserialize<'de> for RequesterType
impl<'de> Deserialize<'de> for RequesterType
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 Display for RequesterType
impl Display for RequesterType
Source§impl FromStr for RequesterType
impl FromStr for RequesterType
Source§impl Ord for RequesterType
impl Ord for RequesterType
Source§fn cmp(&self, other: &RequesterType) -> Ordering
fn cmp(&self, other: &RequesterType) -> 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 RequesterType
impl PartialEq for RequesterType
Source§impl PartialOrd for RequesterType
impl PartialOrd for RequesterType
Source§impl Serialize for RequesterType
impl Serialize for RequesterType
impl Copy for RequesterType
impl Eq for RequesterType
impl StructuralPartialEq for RequesterType
Auto Trait Implementations§
impl Freeze for RequesterType
impl RefUnwindSafe for RequesterType
impl Send for RequesterType
impl Sync for RequesterType
impl Unpin for RequesterType
impl UnwindSafe for RequesterType
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