pub struct CommitTransactionParams {
pub transaction_id: Option<TransactionId>,
pub incarnation_uuid: Option<Uuid>,
}Expand description
Query parameters to the /commit_transaction endpoint.
Fields§
§transaction_id: Option<TransactionId>The ID of the transaction to commit, which /start_transaction
returned:
- If this is the transaction that the API started and that is still open, the request commits it.
- If this is the last transaction that
/commit_transactioncommitted, the request succeeds and does nothing, so it is safe to retry. - Otherwise, the request fails with 409 Conflict, for example if no transaction with this ID has started yet.
Without this parameter, the request commits the transaction that the API started.
incarnation_uuid: Option<Uuid>The incarnation_uuid that /start_transaction returned. If the
pipeline restarted since then, the request fails with 400 Bad Request
and error code IncarnationUuidMismatch, because transaction IDs start
again after a restart.
Trait Implementations§
Source§impl Debug for CommitTransactionParams
impl Debug for CommitTransactionParams
Source§impl Default for CommitTransactionParams
impl Default for CommitTransactionParams
Source§impl<'de> Deserialize<'de> for CommitTransactionParamswhere
CommitTransactionParams: Default,
impl<'de> Deserialize<'de> for CommitTransactionParamswhere
CommitTransactionParams: Default,
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 IntoParams for CommitTransactionParams
impl IntoParams for CommitTransactionParams
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Source§impl Serialize for CommitTransactionParams
impl Serialize for CommitTransactionParams
Auto Trait Implementations§
impl Forget for CommitTransactionParams
impl Freeze for CommitTransactionParams
impl RefUnwindSafe for CommitTransactionParams
impl Send for CommitTransactionParams
impl Sync for CommitTransactionParams
impl Unpin for CommitTransactionParams
impl UnsafeUnpin for CommitTransactionParams
impl UnwindSafe for CommitTransactionParams
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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