pub enum RequesterType {
Human,
Agent,
}Expand description
Distinguishes between human and agent requesters.
§Example
use awp_types::RequesterType;
let rt = RequesterType::Agent;
assert_eq!(serde_json::to_string(&rt).unwrap(), "\"agent\"");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 (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 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 Hash for RequesterType
impl Hash for RequesterType
Source§impl PartialEq for RequesterType
impl PartialEq for RequesterType
Source§fn eq(&self, other: &RequesterType) -> bool
fn eq(&self, other: &RequesterType) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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