pub struct BACnetAccessRule {
pub time_range_specifier: u32,
pub time_range: Option<(Date, Time, Date, Time)>,
pub location_specifier: u32,
pub location: Option<BACnetDeviceObjectReference>,
pub enable: bool,
}Expand description
BACnet Access Rule for access control objects.
Specifies a time range and location with an enable/disable flag, used in positive and negative access rules lists.
Fields§
§time_range_specifier: u32Time range specifier: 0 = specified, 1 = always.
time_range: Option<(Date, Time, Date, Time)>Optional time range (start date, start time, end date, end time).
Present only when time_range_specifier is 0 (specified).
location_specifier: u32Location specifier: 0 = specified, 1 = all.
location: Option<BACnetDeviceObjectReference>Optional location reference. Present only when location_specifier is 0 (specified).
enable: boolWhether access is enabled or disabled by this rule.
Trait Implementations§
Source§impl Clone for BACnetAccessRule
impl Clone for BACnetAccessRule
Source§fn clone(&self) -> BACnetAccessRule
fn clone(&self) -> BACnetAccessRule
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 BACnetAccessRule
impl Debug for BACnetAccessRule
Source§impl PartialEq for BACnetAccessRule
impl PartialEq for BACnetAccessRule
impl StructuralPartialEq for BACnetAccessRule
Auto Trait Implementations§
impl Freeze for BACnetAccessRule
impl RefUnwindSafe for BACnetAccessRule
impl Send for BACnetAccessRule
impl Sync for BACnetAccessRule
impl Unpin for BACnetAccessRule
impl UnsafeUnpin for BACnetAccessRule
impl UnwindSafe for BACnetAccessRule
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