pub struct Object {
pub name: String,
pub object_id: u16,
pub object_urn: String,
pub object_version: Version,
pub lwm2m_version: Version,
pub has_multiple_instances: bool,
pub is_mandatory: bool,
pub resources: Vec<Resource>,
}Expand description
Represents a LwM2M object as defined in a specification file
Fields§
§name: StringThe name of the object.
object_id: u16The object ID.
object_urn: StringThe URN of the object.
object_version: VersionThe object version
lwm2m_version: VersionThe LwM2M version where the object was introduced.
has_multiple_instances: boolIndicates it the object can have multiple instances.
is_mandatory: boolIndicates if the object is mandatory.
resources: Vec<Resource>The list of resources of the object.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Object
impl<'de> Deserialize<'de> for Object
Source§fn 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
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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