pub fn props_for(envelope: &Envelope) -> BasicPropertiesExpand description
AMQP properties for publishing envelope.
content-typeisapplication/json, matchingEnvelope::to_bytes.delivery-modeis2(persistent).message-idis the job id, stable across retries.typeis the job type.priorityisEnvelope::priority, always set. Normal work carries0; a deferred envelope carries its queue’s top level so it overtakes the backlog. A queue declared withoutx-max-priorityignores the property, and a priority above the queue’sx-max-priorityis treated by the broker as that maximum, so this is safe to set unconditionally.expirationis never set, not even for a message bound for a hold queue. The wait is the hold queue’s queue-widex-message-ttl; a per-message expiration on top of it would reintroduce exactly the mixed-TTL head-of-line blocking that hold queues exist to avoid, and a shorter one would release the job early.