pub struct ObjectProfile {
pub tags: Option<Vec<BACnetNameValue>>,
pub profile_location: Option<String>,
pub profile_name: Option<String>,
}Expand description
The optional Tags, Profile_Location and Profile_Name rows of one object.
A field left None keeps its row out of the object; Some serves it,
an empty Tags array included. Provision it with the object’s
set_profile, which checks it first.
Fields§
Tags: the object’s tags, writable by peers.
profile_location: Option<String>Profile_Location: the URI of the file defining the profile.
profile_name: Option<String>Profile_Name: the profile the object conforms to.
Implementations§
Source§impl ObjectProfile
impl ObjectProfile
Sourcepub fn check(&self) -> Result<(), Error>
pub fn check(&self) -> Result<(), Error>
Check the rows as an object takes them. Too many tags is NO_SPACE_TO_WRITE_PROPERTY; a tag value that isn’t a primitive is INVALID_DATA_TYPE; a tag name with a semicolon, a non-empty location with another URI scheme, or a profile name without its vendor prefix is VALUE_OUT_OF_RANGE.
Trait Implementations§
Source§impl Clone for ObjectProfile
impl Clone for ObjectProfile
Source§impl Debug for ObjectProfile
impl Debug for ObjectProfile
Source§impl Default for ObjectProfile
impl Default for ObjectProfile
Source§impl PartialEq for ObjectProfile
impl PartialEq for ObjectProfile
impl StructuralPartialEq for ObjectProfile
Auto Trait Implementations§
impl Freeze for ObjectProfile
impl RefUnwindSafe for ObjectProfile
impl Send for ObjectProfile
impl Sync for ObjectProfile
impl Unpin for ObjectProfile
impl UnsafeUnpin for ObjectProfile
impl UnwindSafe for ObjectProfile
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