pub struct OutboxItem {
pub id: String,
pub channel: String,
pub created_at: String,
pub attempts: u32,
pub next_attempt_at: Option<String>,
pub last_error: Option<String>,
pub policy_hold: bool,
pub payload: Value,
}Fields§
§id: String§channel: String§created_at: String§attempts: u32§next_attempt_at: Option<String>§last_error: Option<String>§policy_hold: boolThe wait is a policy refusal’s (policy_denied): a newer policy in
force ends it at once (Outbox::release_policy_holds).
payload: ValueImplementations§
Source§impl OutboxItem
impl OutboxItem
Sourcepub fn due(&self, now: UtcDateTime) -> bool
pub fn due(&self, now: UtcDateTime) -> bool
Whether the item may be sent at now.
Trait Implementations§
Source§impl Clone for OutboxItem
impl Clone for OutboxItem
Source§impl Debug for OutboxItem
impl Debug for OutboxItem
Source§impl<'de> Deserialize<'de> for OutboxItem
impl<'de> Deserialize<'de> for OutboxItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OutboxItem
impl PartialEq for OutboxItem
Source§impl Serialize for OutboxItem
impl Serialize for OutboxItem
impl StructuralPartialEq for OutboxItem
Auto Trait Implementations§
impl Forget for OutboxItem
impl Freeze for OutboxItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for OutboxItem
impl RefUnwindSafe for OutboxItem
impl Send for OutboxItem
impl Sync for OutboxItem
impl Unpin for OutboxItem
impl UnsafeUnpin for OutboxItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for OutboxItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more