pub struct Resource {
pub id: u16,
pub name: String,
pub operations: Operations,
pub has_multiple_instances: bool,
pub is_mandatory: bool,
pub resource_type: ResourceType,
}Expand description
A resource within an LwM2M object.
Fields§
§id: u16The resource ID.
name: StringThe name of the resource.
operations: OperationsThe allowed operations for the resource.
has_multiple_instances: boolIndicates if the resource has multiple instances.
is_mandatory: boolIndicates if the resource is mandatory.
resource_type: ResourceTypeThe type of the resource.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
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 Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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