pub struct ReadOptions {
pub new_transaction: Option<TransactionOptions>,
pub read_consistency: Option<String>,
pub read_time: Option<DateTime<Utc>>,
pub transaction: Option<Vec<u8>>,
}Expand description
The options shared by read requests.
This type is not used in any activity, and only used as part of another schema.
Fields§
§new_transaction: Option<TransactionOptions>Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either LookupResponse.transaction or RunQueryResponse.transaction.
read_consistency: Option<String>The non-transactional read consistency to use.
read_time: Option<DateTime<Utc>>Reads entities as they were at the given time. This value is only supported for Cloud Firestore in Datastore mode. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
transaction: Option<Vec<u8>>The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
Trait Implementations§
Source§impl Clone for ReadOptions
impl Clone for ReadOptions
Source§fn clone(&self) -> ReadOptions
fn clone(&self) -> ReadOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more