#[non_exhaustive]pub struct TurnError {
pub kind: TurnErrorKind,
pub message: String,
pub retryable: bool,
pub quota: Option<QuotaDetail>,
pub request_denied: bool,
}Expand description
The settled turn-failure object: {kind, message, retryable}.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: TurnErrorKindThe failure class (open camelCase enum grounded in the runtime’s terminal failure classification).
message: StringHuman-readable failure text.
retryable: boolThe server’s judgment that resubmitting the same input may succeed.
quota: Option<QuotaDetail>Typed quota-exhaustion detail: present iff the stopping failure was the
quota class. Clients branch on presence, never by parsing message.
request_denied: booltrue when the provider refused this request. Present only on the live
turn/completed: replayed, snapshot-served and workflow/resume
terminals omit it, so absence does not mean the request was not denied.
Never false.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TurnError
impl<'de> Deserialize<'de> for TurnError
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
impl Eq for TurnError
impl StructuralPartialEq for TurnError
Auto Trait Implementations§
impl Freeze for TurnError
impl RefUnwindSafe for TurnError
impl Send for TurnError
impl Sync for TurnError
impl Unpin for TurnError
impl UnsafeUnpin for TurnError
impl UnwindSafe for TurnError
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