pub struct TransactionStartParams {
pub protocol_version: u32,
pub timeout_ms: Option<u64>,
pub isolation_level: Option<IsolationLevel>,
}Expand description
Start a new interactive transaction.
Fields§
§protocol_version: u32§timeout_ms: Option<u64>Maximum duration in milliseconds before the transaction is automatically rolled back. Defaults to 5000 (5 seconds) if omitted.
isolation_level: Option<IsolationLevel>Optional isolation level override.
Trait Implementations§
Source§impl Clone for TransactionStartParams
impl Clone for TransactionStartParams
Source§fn clone(&self) -> TransactionStartParams
fn clone(&self) -> TransactionStartParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionStartParams
impl Debug for TransactionStartParams
Source§impl<'de> Deserialize<'de> for TransactionStartParams
impl<'de> Deserialize<'de> for TransactionStartParams
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
Auto Trait Implementations§
impl Freeze for TransactionStartParams
impl RefUnwindSafe for TransactionStartParams
impl Send for TransactionStartParams
impl Sync for TransactionStartParams
impl Unpin for TransactionStartParams
impl UnsafeUnpin for TransactionStartParams
impl UnwindSafe for TransactionStartParams
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