Struct worker::RawMessageBuilder
source · pub struct RawMessageBuilder { /* private fields */ }
Implementations§
source§impl RawMessageBuilder
impl RawMessageBuilder
sourcepub fn new(message: JsValue) -> Self
pub fn new(message: JsValue) -> Self
Creates a new raw message builder. The message must be a JsValue
.
sourcepub fn delay_seconds(self, delay_seconds: u32) -> Self
pub fn delay_seconds(self, delay_seconds: u32) -> Self
The number of seconds to delay a message for within the queue, before it can be delivered to a consumer
sourcepub fn build_with_content_type(
self,
content_type: QueueContentType
) -> SendMessage<JsValue>
pub fn build_with_content_type( self, content_type: QueueContentType ) -> SendMessage<JsValue>
Build the message with a content type.
Auto Trait Implementations§
impl Freeze for RawMessageBuilder
impl RefUnwindSafe for RawMessageBuilder
impl !Send for RawMessageBuilder
impl !Sync for RawMessageBuilder
impl Unpin for RawMessageBuilder
impl UnwindSafe for RawMessageBuilder
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