pub struct CommitResponse {
pub commit_stats: Option<CommitStats>,
pub commit_timestamp: Option<DateTime<Utc>>,
pub precommit_token: Option<MultiplexedSessionPrecommitToken>,
pub snapshot_timestamp: Option<DateTime<Utc>>,
}Expand description
The response for Commit.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- instances databases sessions commit projects (response)
Fields§
§commit_stats: Option<CommitStats>The statistics about this Commit. Not returned by default. For more information, see CommitRequest.return_commit_stats.
commit_timestamp: Option<DateTime<Utc>>The Cloud Spanner timestamp at which the transaction committed.
precommit_token: Option<MultiplexedSessionPrecommitToken>If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
snapshot_timestamp: Option<DateTime<Utc>>If TransactionOptions.isolation_level is set to IsolationLevel.REPEATABLE_READ, then the snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp is never returned.
Trait Implementations§
Source§impl Clone for CommitResponse
impl Clone for CommitResponse
Source§fn clone(&self) -> CommitResponse
fn clone(&self) -> CommitResponse
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 CommitResponse
impl Debug for CommitResponse
Source§impl Default for CommitResponse
impl Default for CommitResponse
Source§fn default() -> CommitResponse
fn default() -> CommitResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommitResponse
impl<'de> Deserialize<'de> for CommitResponse
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 Serialize for CommitResponse
impl Serialize for CommitResponse
impl ResponseResult for CommitResponse
Auto Trait Implementations§
impl Freeze for CommitResponse
impl RefUnwindSafe for CommitResponse
impl Send for CommitResponse
impl Sync for CommitResponse
impl Unpin for CommitResponse
impl UnwindSafe for CommitResponse
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