[−][src]Struct azure_functions::bindings::QueueTrigger
Represents a queue trigger binding.
The following binding attributes are supported:
Name | Description |
---|---|
name | The name of the parameter being bound. |
queue_name | The name of the queue to poll. |
connection | The name of an app setting that contains the Azure Storage connection string to use for this binding. Defaults to the AzureWebJobsStorage . |
Examples
A function that runs when a message is posted to a queue called example
:
use azure_functions::bindings::QueueTrigger; use azure_functions::func; use log::info; #[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: DateTime<Utc>
The time that the message expires.
insertion_time: DateTime<Utc>
The time that the message was added to the queue.
next_visible_time: DateTime<Utc>
The time that the message will next be visible.
pop_receipt: String
The message's pop receipt.
Trait Implementations
Auto Trait Implementations
impl Send for QueueTrigger
impl Sync for QueueTrigger
impl Unpin for QueueTrigger
impl UnwindSafe for QueueTrigger
impl RefUnwindSafe for QueueTrigger
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,