Struct chirpstack_api::api::IftttIntegration
source · 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: String
Application ID (UUID).
key: String
Key. 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: bool
Arbitrary 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: String
Event 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, 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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq for IftttIntegration
impl PartialEq for IftttIntegration
source§fn eq(&self, other: &IftttIntegration) -> bool
fn eq(&self, other: &IftttIntegration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IftttIntegration
Auto Trait Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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