pub struct AttributePermissions {
pub read: Option<SecurityLevels>,
pub write: Option<SecurityLevels>,
pub update: Option<SecurityLevels>,
}
Fields§
§read: Option<SecurityLevels>
If None, then this cannot be read. Otherwise the SecurityLevels given are required to read.
write: Option<SecurityLevels>
If None, then this cannot be written. Otherwise the SecurityLevels given are required to write.
update: Option<SecurityLevels>
If None, then this cannot be updated. Otherwise the SecurityLevels given are required to update.
Implementations§
Source§impl AttributePermissions
impl AttributePermissions
pub fn with_levels( properties: &CharacteristicProperties, levels: &SecurityLevels, ) -> Self
Trait Implementations§
Source§impl Clone for AttributePermissions
impl Clone for AttributePermissions
Source§fn clone(&self) -> AttributePermissions
fn clone(&self) -> AttributePermissions
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 AttributePermissions
impl Debug for AttributePermissions
Source§impl Default for AttributePermissions
impl Default for AttributePermissions
Source§fn default() -> AttributePermissions
fn default() -> AttributePermissions
Returns the “default value” for a type. Read more
impl Copy for AttributePermissions
Auto Trait Implementations§
impl Freeze for AttributePermissions
impl RefUnwindSafe for AttributePermissions
impl Send for AttributePermissions
impl Sync for AttributePermissions
impl Unpin for AttributePermissions
impl UnwindSafe for AttributePermissions
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