pub struct OperationSafety {
pub operation: Operation,
pub reads_sql: bool,
pub mutates_state: bool,
pub submits_transaction: bool,
pub waits_for_receipt: bool,
pub requires_signed_rpc: bool,
pub requires_owner_write_intent: bool,
}Expand description
Safety metadata for a database operation.
Fields§
§operation: Operation§reads_sql: bool§mutates_state: bool§submits_transaction: bool§waits_for_receipt: bool§requires_signed_rpc: bool§requires_owner_write_intent: boolTrait Implementations§
Source§impl Clone for OperationSafety
impl Clone for OperationSafety
Source§fn clone(&self) -> OperationSafety
fn clone(&self) -> OperationSafety
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperationSafety
Source§impl Debug for OperationSafety
impl Debug for OperationSafety
impl Eq for OperationSafety
Source§impl PartialEq for OperationSafety
impl PartialEq for OperationSafety
Source§fn eq(&self, other: &OperationSafety) -> bool
fn eq(&self, other: &OperationSafety) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperationSafety
Auto Trait Implementations§
impl Freeze for OperationSafety
impl RefUnwindSafe for OperationSafety
impl Send for OperationSafety
impl Sync for OperationSafety
impl Unpin for OperationSafety
impl UnsafeUnpin for OperationSafety
impl UnwindSafe for OperationSafety
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