pub enum ActionAccess {
Read,
Write,
Delete,
}Expand description
The least access an action needs to run, judged by what it does to the
remote system rather than by the HTTP method it goes out on: a POST search
is Read, a POST bulk delete is Delete.
The variants are declared least to most, so Ord is the access order
itself: max of two levels is the one that admits less, which is the safe
side to land on when a judgement is not clear cut.
Variants§
Trait Implementations§
Source§impl Clone for ActionAccess
impl Clone for ActionAccess
impl Copy for ActionAccess
Source§impl Debug for ActionAccess
impl Debug for ActionAccess
Source§impl<'de> Deserialize<'de> for ActionAccess
impl<'de> Deserialize<'de> for ActionAccess
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 ActionAccess
impl Display for ActionAccess
impl Eq for ActionAccess
Source§impl FromStr for ActionAccess
impl FromStr for ActionAccess
Source§impl Hash for ActionAccess
impl Hash for ActionAccess
Source§impl Ord for ActionAccess
impl Ord for ActionAccess
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ActionAccess
impl PartialEq for ActionAccess
Source§impl PartialOrd for ActionAccess
impl PartialOrd for ActionAccess
Source§impl Serialize for ActionAccess
impl Serialize for ActionAccess
impl StructuralPartialEq for ActionAccess
Source§impl TryFrom<&str> for ActionAccess
impl TryFrom<&str> for ActionAccess
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ActionAccess
impl TryFrom<String> for ActionAccess
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for ActionAccess
impl Freeze for ActionAccess
impl Move for ActionAccess
impl RefUnwindSafe for ActionAccess
impl Send for ActionAccess
impl Sync for ActionAccess
impl Unpin for ActionAccess
impl UnsafeUnpin for ActionAccess
impl UnwindSafe for ActionAccess
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.