[−][src]Struct azure_functions::bindings::QueueTrigger
Represents a queue trigger binding.
Examples
A function that runs when a message is posted to a queue called example
:
use azure_functions::bindings::QueueTrigger; use azure_functions::func; #[func] #[binding(name = "trigger", queue_name = "example")] pub fn run_on_message(trigger: &QueueTrigger) { info!("Rust function ran due to queue message: {}", trigger.message); }
Fields
message: QueueMessage
The queue message that triggered the function.
id: String
The queue message identifier.
dequeue_count: u32
The number of times this message has been dequeued.
expiration_time: Option<DateTime<Utc>>
The time that the message expires.
insertion_time: Option<DateTime<Utc>>
The time that the message was added to the queue.
next_visible_time: Option<DateTime<Utc>>
The time that the message will next be visible.
pop_receipt: String
The message's pop receipt.
Trait Implementations
impl From<TypedData> for QueueTrigger
[src]
impl Debug for QueueTrigger
[src]
Auto Trait Implementations
impl Send for QueueTrigger
impl Sync for QueueTrigger
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.