Struct google_firestore1_beta1::api::TransactionOptions
source · pub struct TransactionOptions {
pub read_only: Option<ReadOnly>,
pub read_write: Option<ReadWrite>,
}
Expand description
Options for creating a new transaction.
This type is not used in any activity, and only used as part of another schema.
Fields§
§read_only: Option<ReadOnly>
The transaction can only be used for read operations.
read_write: Option<ReadWrite>
The transaction can be used for both read and write operations.
Trait Implementations§
source§impl Clone for TransactionOptions
impl Clone for TransactionOptions
source§fn clone(&self) -> TransactionOptions
fn clone(&self) -> TransactionOptions
Returns a copy 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 TransactionOptions
impl Debug for TransactionOptions
source§impl Default for TransactionOptions
impl Default for TransactionOptions
source§fn default() -> TransactionOptions
fn default() -> TransactionOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransactionOptions
impl<'de> Deserialize<'de> for TransactionOptions
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 TransactionOptions
impl Serialize for TransactionOptions
impl Part for TransactionOptions
Auto Trait Implementations§
impl RefUnwindSafe for TransactionOptions
impl Send for TransactionOptions
impl Sync for TransactionOptions
impl Unpin for TransactionOptions
impl UnwindSafe for TransactionOptions
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