pub struct Outbox {
pub idempotent_key: Uuid,
pub partition_key: Uuid,
pub destinations: Json<Vec<OutboxDestination>>,
pub headers: Option<Json<HashMap<String, String>>>,
pub payload: String,
pub attempts: i32,
pub created_at: DateTime<Utc>,
pub process_after: Option<DateTime<Utc>>,
pub processed_at: Option<DateTime<Utc>>,
}Fields§
§idempotent_key: Uuid§partition_key: Uuid§destinations: Json<Vec<OutboxDestination>>§headers: Option<Json<HashMap<String, String>>>§payload: String§attempts: i32§created_at: DateTime<Utc>§process_after: Option<DateTime<Utc>>§processed_at: Option<DateTime<Utc>>Implementations§
Source§impl Outbox
impl Outbox
pub fn delay(&self, process_after: DateTime<Utc>) -> Self
pub fn http_post_json( partition_key: Uuid, url: &str, headers: Option<HashMap<String, String>>, payload: &Value, ) -> Self
pub fn http_put_json( partition_key: Uuid, url: &str, headers: Option<HashMap<String, String>>, payload: &Value, ) -> Self
pub fn http_patch_json( partition_key: Uuid, url: &str, headers: Option<HashMap<String, String>>, payload: &Value, ) -> Self
pub fn sqs( partition_key: Uuid, queue_url: &str, headers: Option<HashMap<String, String>>, payload: &str, ) -> Self
pub fn sns( partition_key: Uuid, topic_arn: &str, headers: Option<HashMap<String, String>>, payload: &str, ) -> Self
pub fn http_and_sns( partition_key: Uuid, url: &str, topic_arn: &str, headers: Option<HashMap<String, String>>, payload: &Value, ) -> Self
pub fn http_and_sqs( partition_key: Uuid, url: &str, queue_url: &str, headers: Option<HashMap<String, String>>, payload: &Value, ) -> Self
pub fn new( partition_key: Uuid, destinations: Vec<OutboxDestination>, headers: Option<HashMap<String, String>>, payload: &str, ) -> Self
Trait Implementations§
Source§impl<'a, R: Row> FromRow<'a, R> for Outboxwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
Json<Vec<OutboxDestination>>: Decode<'a, R::Database> + Type<R::Database>,
Option<Json<HashMap<String, String>>>: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for Outboxwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
Json<Vec<OutboxDestination>>: Decode<'a, R::Database> + Type<R::Database>,
Option<Json<HashMap<String, String>>>: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
impl StructuralPartialEq for Outbox
Auto Trait Implementations§
impl Freeze for Outbox
impl RefUnwindSafe for Outbox
impl Send for Outbox
impl Sync for Outbox
impl Unpin for Outbox
impl UnwindSafe for Outbox
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.