pub struct InboxRefreshRequest {
pub device_id: Option<String>,
pub since: DateTime<Utc>,
pub until: DateTime<Utc>,
pub message_types: Option<Vec<IncomingMessageType>>,
pub trigger_webhooks: bool,
pub webhook_delivery: Option<WebhookDelivery>,
}Expand description
Request to refresh the inbox and pull new messages from the device.
Fields§
§device_id: Option<String>Optional device ID filter.
since: DateTime<Utc>Start of the time range.
until: DateTime<Utc>End of the time range.
message_types: Option<Vec<IncomingMessageType>>Types of messages to include.
trigger_webhooks: boolWhether to trigger webhooks for pulled messages.
Deprecated: use webhook_delivery instead.
webhook_delivery: Option<WebhookDelivery>Delivery mode for webhooks (overrides trigger_webhooks when set).
Trait Implementations§
Source§impl Clone for InboxRefreshRequest
impl Clone for InboxRefreshRequest
Source§fn clone(&self) -> InboxRefreshRequest
fn clone(&self) -> InboxRefreshRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InboxRefreshRequest
impl Debug for InboxRefreshRequest
Source§impl<'de> Deserialize<'de> for InboxRefreshRequest
impl<'de> Deserialize<'de> for InboxRefreshRequest
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
Auto Trait Implementations§
impl Freeze for InboxRefreshRequest
impl RefUnwindSafe for InboxRefreshRequest
impl Send for InboxRefreshRequest
impl Sync for InboxRefreshRequest
impl Unpin for InboxRefreshRequest
impl UnsafeUnpin for InboxRefreshRequest
impl UnwindSafe for InboxRefreshRequest
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