#[repr(u8)]pub enum AccessPermissions {
None = 0,
CallOnly = 1,
WriteOnly = 2,
WriteAndCall = 3,
ReadOnly = 4,
ReadAndCall = 5,
ReadAndWrite = 6,
Full = 7,
}
Variants§
None = 0
CallOnly = 1
WriteOnly = 2
WriteAndCall = 3
ReadOnly = 4
ReadAndCall = 5
ReadAndWrite = 6
Full = 7
Implementations§
Trait Implementations§
Source§impl Clone for AccessPermissions
impl Clone for AccessPermissions
Source§fn clone(&self) -> AccessPermissions
fn clone(&self) -> AccessPermissions
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 AccessPermissions
impl Debug for AccessPermissions
Source§impl<'de> Deserialize<'de> for AccessPermissions
impl<'de> Deserialize<'de> for AccessPermissions
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 AccessPermissions
impl Display for AccessPermissions
Source§impl Into<AccessPermissions> for RequestOpType
impl Into<AccessPermissions> for RequestOpType
Source§fn into(self) -> AccessPermissions
fn into(self) -> AccessPermissions
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for AccessPermissions
impl PartialEq for AccessPermissions
Source§impl Serialize for AccessPermissions
impl Serialize for AccessPermissions
Source§impl TryFrom<&str> for AccessPermissions
impl TryFrom<&str> for AccessPermissions
Source§type Error = BuckyError
type Error = BuckyError
The type returned in the event of a conversion error.
Source§fn try_from(value: &str) -> BuckyResult<Self>
fn try_from(value: &str) -> BuckyResult<Self>
Performs the conversion.
Source§impl TryFrom<u8> for AccessPermissions
impl TryFrom<u8> for AccessPermissions
Source§type Error = BuckyError
type Error = BuckyError
The type returned in the event of a conversion error.
Source§fn try_from(v: u8) -> BuckyResult<Self>
fn try_from(v: u8) -> BuckyResult<Self>
Performs the conversion.
impl Copy for AccessPermissions
impl Eq for AccessPermissions
impl StructuralPartialEq for AccessPermissions
Auto Trait Implementations§
impl Freeze for AccessPermissions
impl RefUnwindSafe for AccessPermissions
impl Send for AccessPermissions
impl Sync for AccessPermissions
impl Unpin for AccessPermissions
impl UnwindSafe for AccessPermissions
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more