pub struct Perms {
pub read: bool,
pub write: bool,
pub events: bool,
pub additional_authorization: bool,
pub timed_write: bool,
pub hidden: bool,
pub write_response: bool,
}Expand description
The set of HAP characteristic permissions.
HAP defines seven independent permission flags; modeling them as a flat set
of booleans mirrors the wire format directly, so the struct_excessive_bools
lint does not apply here.
Fields§
§read: boolpr — paired read.
write: boolpw — paired write.
events: boolev — events / notifications.
aa — additional authorization.
timed_write: booltw — timed write.
hd — hidden.
write_response: boolwr — write response.
Trait Implementations§
impl Copy for Perms
Source§impl<'de> Deserialize<'de> for Perms
impl<'de> Deserialize<'de> for Perms
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Perms
impl StructuralPartialEq for Perms
Auto Trait Implementations§
impl Freeze for Perms
impl RefUnwindSafe for Perms
impl Send for Perms
impl Sync for Perms
impl Unpin for Perms
impl UnsafeUnpin for Perms
impl UnwindSafe for Perms
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