pub struct DeviceProfileTemplateListItem {
pub id: String,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub name: String,
pub vendor: String,
pub firmware: String,
pub region: i32,
pub mac_version: i32,
pub reg_params_revision: i32,
pub supports_otaa: bool,
pub supports_class_b: bool,
pub supports_class_c: bool,
}Fields§
§id: StringDevice-profile template ID.
created_at: Option<Timestamp>Created at timestamp.
updated_at: Option<Timestamp>Last update timestamp.
name: StringName.
vendor: StringVendor.
firmware: StringFirmware.
region: i32Region.
mac_version: i32LoRaWAN mac-version.
reg_params_revision: i32Regional parameters revision.
supports_otaa: boolSupports OTAA.
supports_class_b: boolSupports Class-B.
supports_class_c: boolSupports Class-C.
Implementations§
Source§impl DeviceProfileTemplateListItem
impl DeviceProfileTemplateListItem
Sourcepub fn region(&self) -> Region
pub fn region(&self) -> Region
Returns the enum value of region, or the default if the field is set to an invalid enum value.
Sourcepub fn set_region(&mut self, value: Region)
pub fn set_region(&mut self, value: Region)
Sets region to the provided enum value.
Sourcepub fn mac_version(&self) -> MacVersion
pub fn mac_version(&self) -> MacVersion
Returns the enum value of mac_version, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mac_version(&mut self, value: MacVersion)
pub fn set_mac_version(&mut self, value: MacVersion)
Sets mac_version to the provided enum value.
Sourcepub fn reg_params_revision(&self) -> RegParamsRevision
pub fn reg_params_revision(&self) -> RegParamsRevision
Returns the enum value of reg_params_revision, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reg_params_revision(&mut self, value: RegParamsRevision)
pub fn set_reg_params_revision(&mut self, value: RegParamsRevision)
Sets reg_params_revision to the provided enum value.
Trait Implementations§
Source§impl Clone for DeviceProfileTemplateListItem
impl Clone for DeviceProfileTemplateListItem
Source§fn clone(&self) -> DeviceProfileTemplateListItem
fn clone(&self) -> DeviceProfileTemplateListItem
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 Message for DeviceProfileTemplateListItem
impl Message for DeviceProfileTemplateListItem
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for DeviceProfileTemplateListItem
impl PartialEq for DeviceProfileTemplateListItem
Source§fn eq(&self, other: &DeviceProfileTemplateListItem) -> bool
fn eq(&self, other: &DeviceProfileTemplateListItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceProfileTemplateListItem
Auto Trait Implementations§
impl Freeze for DeviceProfileTemplateListItem
impl RefUnwindSafe for DeviceProfileTemplateListItem
impl Send for DeviceProfileTemplateListItem
impl Sync for DeviceProfileTemplateListItem
impl Unpin for DeviceProfileTemplateListItem
impl UnwindSafe for DeviceProfileTemplateListItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request