pub struct IftttIntegration {
pub application_id: String,
pub key: String,
pub uplink_values: Vec<String>,
pub arbitrary_json: bool,
pub event_prefix: String,
}Fields§
§application_id: StringApplication ID (UUID).
key: StringKey. This key can be obtained from the IFTTT Webhooks documentation page.
uplink_values: Vec<String>Values. Up to 2 values can be forwarded to IFTTT. These values must map to the decoded payload keys. For example: { “batteryLevel”: 75.3, “buttons”: [{“pressed”: false}, {“pressed”: true}] } You would specify the following fields: uplink_values = [“batteryLevel”, “buttons_0_pressed”]
Notes: The first value is always used for the DevEUI. Ignored if arbitrary_json is set to true.
arbitrary_json: boolArbitrary JSON. If set to true, ChirpStack events will be sent as-is as arbitrary JSON payload. If set to false (default), the 3 JSON values format will be used.
event_prefix: StringEvent prefix. If set, the event name will be PREFIX_EVENT. For example if event_prefix is set to weatherstation, and uplink event will be sent as weatherstation_up to the IFTTT webhook. Note: Only characters in the A-Z, a-z and 0-9 range are allowed.
Trait Implementations§
Source§impl Clone for IftttIntegration
impl Clone for IftttIntegration
Source§fn clone(&self) -> IftttIntegration
fn clone(&self) -> IftttIntegration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IftttIntegration
impl Debug for IftttIntegration
Source§impl Default for IftttIntegration
impl Default for IftttIntegration
Source§impl Message for IftttIntegration
impl Message for IftttIntegration
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for IftttIntegration
impl PartialEq for IftttIntegration
impl StructuralPartialEq for IftttIntegration
Auto Trait Implementations§
impl Freeze for IftttIntegration
impl RefUnwindSafe for IftttIntegration
impl Send for IftttIntegration
impl Sync for IftttIntegration
impl Unpin for IftttIntegration
impl UnwindSafe for IftttIntegration
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
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>
T in a tonic::Request