Struct cyfs_lib::GlobalStatePathAccessItem
source · [−]pub struct GlobalStatePathAccessItem {
pub path: String,
pub access: GlobalStatePathGroupAccess,
}
Fields
path: String
access: GlobalStatePathGroupAccess
Implementations
sourceimpl GlobalStatePathAccessItem
impl GlobalStatePathAccessItem
pub fn check_valid(&self) -> bool
pub fn fix_path(path: impl Into<String> + AsRef<str>) -> String
pub fn compare_path(left: &String, right: &String) -> Option<Ordering>
pub fn new(path: impl Into<String> + AsRef<str>, access: u32) -> Self
pub fn new_group(
path: impl Into<String> + AsRef<str>,
zone: Option<ObjectId>,
zone_category: Option<DeviceZoneCategory>,
dec: Option<ObjectId>,
access: u8
) -> Self
pub fn try_fix_path(&mut self)
Trait Implementations
sourceimpl Clone for GlobalStatePathAccessItem
impl Clone for GlobalStatePathAccessItem
sourcefn clone(&self) -> GlobalStatePathAccessItem
fn clone(&self) -> GlobalStatePathAccessItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GlobalStatePathAccessItem
impl Debug for GlobalStatePathAccessItem
sourceimpl<'de> Deserialize<'de> for GlobalStatePathAccessItem
impl<'de> Deserialize<'de> for GlobalStatePathAccessItem
sourcefn 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
sourceimpl Display for GlobalStatePathAccessItem
impl Display for GlobalStatePathAccessItem
sourceimpl Ord for GlobalStatePathAccessItem
impl Ord for GlobalStatePathAccessItem
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<GlobalStatePathAccessItem> for GlobalStatePathAccessItem
impl PartialEq<GlobalStatePathAccessItem> for GlobalStatePathAccessItem
sourcefn eq(&self, other: &GlobalStatePathAccessItem) -> bool
fn eq(&self, other: &GlobalStatePathAccessItem) -> bool
sourceimpl PartialOrd<GlobalStatePathAccessItem> for GlobalStatePathAccessItem
impl PartialOrd<GlobalStatePathAccessItem> for GlobalStatePathAccessItem
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for GlobalStatePathAccessItem
impl Serialize for GlobalStatePathAccessItem
impl Eq for GlobalStatePathAccessItem
impl StructuralEq for GlobalStatePathAccessItem
impl StructuralPartialEq for GlobalStatePathAccessItem
Auto Trait Implementations
impl RefUnwindSafe for GlobalStatePathAccessItem
impl Send for GlobalStatePathAccessItem
impl Sync for GlobalStatePathAccessItem
impl Unpin for GlobalStatePathAccessItem
impl UnwindSafe for GlobalStatePathAccessItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more