Skip to main content

FuotaDeployment

Struct FuotaDeployment 

Source
pub struct FuotaDeployment {
Show 22 fields pub id: String, pub application_id: String, pub device_profile_id: String, pub name: String, pub multicast_group_type: i32, pub multicast_class_c_scheduling_type: i32, pub multicast_dr: u32, pub multicast_class_b_ping_slot_periodicity: u32, pub multicast_frequency: u32, pub multicast_timeout: u32, pub calculate_multicast_timeout: bool, pub unicast_max_retry_count: u32, pub fragmentation_fragment_size: u32, pub calculate_fragmentation_fragment_size: bool, pub fragmentation_redundancy_percentage: u32, pub fragmentation_session_index: u32, pub fragmentation_matrix: u32, pub fragmentation_block_ack_delay: u32, pub fragmentation_descriptor: Vec<u8>, pub request_fragmentation_session_status: i32, pub payload: Vec<u8>, pub on_complete_set_device_tags: HashMap<String, String>,
}

Fields§

§id: String

Deployment ID. This value is automatically set on create.

§application_id: String

Application ID.

§device_profile_id: String

Device-profile ID.

§name: String

Deployment name.

§multicast_group_type: i32

Multicast-group type.

§multicast_class_c_scheduling_type: i32

Multicast-group scheduling type (Class-C only).

§multicast_dr: u32

Multicast data-rate.

§multicast_class_b_ping_slot_periodicity: u32

Multicast ping-slot period (Class-B only). Valid options are: 0 - 7.

Number of ping-slots per beacon-period: pingNb = 2^(7-periodicity)

Periodicity: 0 = 128 ping-slots per beacon period = ~ every 1 sec Periodicity: 7 = 1 ping-slot per beacon period = ~ every 128 sec

§multicast_frequency: u32

Multicast frequency (Hz).

§multicast_timeout: u32

Multicast timeout. This defines the timeout of the multicast-session. Please refer to the Remote Multicast Setup specification as this field has a different meaning for Class-B and Class-C groups.

§calculate_multicast_timeout: bool

Calculate multicast timeout. If set to true, ChirpStack will calculate the multicast-timeout.

§unicast_max_retry_count: u32

The number of times ChirpStack will retry an unicast command before it considers it to be failed.

§fragmentation_fragment_size: u32

Fragmentation size. This defines the size of each payload fragment. Please refer to the Regional Parameters specification for the maximum payload sizes per data-rate and region.

§calculate_fragmentation_fragment_size: bool

Calculate fragmentation size. If set to true, ChirpStack will calculate the fragmentation size.

§fragmentation_redundancy_percentage: u32

Fragmentation redundancy percentage. The number represents the percentage (0 - 100) of redundant messages to send.

§fragmentation_session_index: u32

Fragmentation session index.

§fragmentation_matrix: u32

Fragmentation matrix.

§fragmentation_block_ack_delay: u32

Block ack delay.

§fragmentation_descriptor: Vec<u8>

Descriptor (4 bytes).

§request_fragmentation_session_status: i32

Request fragmentation session status.

§payload: Vec<u8>

Payload. The FUOTA payload to send.

§on_complete_set_device_tags: HashMap<String, String>

Set device tags on complete.

Implementations§

Source§

impl FuotaDeployment

Source

pub fn multicast_group_type(&self) -> MulticastGroupType

Returns the enum value of multicast_group_type, or the default if the field is set to an invalid enum value.

Source

pub fn set_multicast_group_type(&mut self, value: MulticastGroupType)

Sets multicast_group_type to the provided enum value.

Source

pub fn multicast_class_c_scheduling_type(&self) -> MulticastGroupSchedulingType

Returns the enum value of multicast_class_c_scheduling_type, or the default if the field is set to an invalid enum value.

Source

pub fn set_multicast_class_c_scheduling_type( &mut self, value: MulticastGroupSchedulingType, )

Sets multicast_class_c_scheduling_type to the provided enum value.

Source

pub fn request_fragmentation_session_status( &self, ) -> RequestFragmentationSessionStatus

Returns the enum value of request_fragmentation_session_status, or the default if the field is set to an invalid enum value.

Source

pub fn set_request_fragmentation_session_status( &mut self, value: RequestFragmentationSessionStatus, )

Sets request_fragmentation_session_status to the provided enum value.

Trait Implementations§

Source§

impl Clone for FuotaDeployment

Source§

fn clone(&self) -> FuotaDeployment

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FuotaDeployment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FuotaDeployment

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Message for FuotaDeployment

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 FuotaDeployment

Source§

fn eq(&self, other: &FuotaDeployment) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for FuotaDeployment

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more