Struct kvproto::kvrpcpb::PrewriteRequest[][src]

pub struct PrewriteRequest {
    pub context: SingularPtrField<Context>,
    pub mutations: RepeatedField<Mutation>,
    pub primary_lock: Vec<u8>,
    pub start_version: u64,
    pub lock_ttl: u64,
    pub skip_constraint_check: bool,
    pub is_pessimistic_lock: Vec<bool>,
    pub txn_size: u64,
    pub for_update_ts: u64,
    pub min_commit_ts: u64,
    pub use_async_commit: bool,
    pub secondaries: RepeatedField<Vec<u8>>,
    pub try_one_pc: bool,
    pub max_commit_ts: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

context: SingularPtrField<Context>mutations: RepeatedField<Mutation>primary_lock: Vec<u8>start_version: u64lock_ttl: u64skip_constraint_check: boolis_pessimistic_lock: Vec<bool>txn_size: u64for_update_ts: u64min_commit_ts: u64use_async_commit: boolsecondaries: RepeatedField<Vec<u8>>try_one_pc: boolmax_commit_ts: u64unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl PrewriteRequest[src]

pub fn new() -> PrewriteRequest[src]

pub fn get_context(&self) -> &Context[src]

pub fn clear_context(&mut self)[src]

pub fn has_context(&self) -> bool[src]

pub fn set_context(&mut self, v: Context)[src]

pub fn mut_context(&mut self) -> &mut Context[src]

pub fn take_context(&mut self) -> Context[src]

pub fn get_mutations(&self) -> &[Mutation][src]

pub fn clear_mutations(&mut self)[src]

pub fn set_mutations(&mut self, v: RepeatedField<Mutation>)[src]

pub fn mut_mutations(&mut self) -> &mut RepeatedField<Mutation>[src]

pub fn take_mutations(&mut self) -> RepeatedField<Mutation>[src]

pub fn get_primary_lock(&self) -> &[u8][src]

pub fn clear_primary_lock(&mut self)[src]

pub fn set_primary_lock(&mut self, v: Vec<u8>)[src]

pub fn mut_primary_lock(&mut self) -> &mut Vec<u8>[src]

pub fn take_primary_lock(&mut self) -> Vec<u8>[src]

pub fn get_start_version(&self) -> u64[src]

pub fn clear_start_version(&mut self)[src]

pub fn set_start_version(&mut self, v: u64)[src]

pub fn get_lock_ttl(&self) -> u64[src]

pub fn clear_lock_ttl(&mut self)[src]

pub fn set_lock_ttl(&mut self, v: u64)[src]

pub fn get_skip_constraint_check(&self) -> bool[src]

pub fn clear_skip_constraint_check(&mut self)[src]

pub fn set_skip_constraint_check(&mut self, v: bool)[src]

pub fn get_is_pessimistic_lock(&self) -> &[bool][src]

pub fn clear_is_pessimistic_lock(&mut self)[src]

pub fn set_is_pessimistic_lock(&mut self, v: Vec<bool>)[src]

pub fn mut_is_pessimistic_lock(&mut self) -> &mut Vec<bool>[src]

pub fn take_is_pessimistic_lock(&mut self) -> Vec<bool>[src]

pub fn get_txn_size(&self) -> u64[src]

pub fn clear_txn_size(&mut self)[src]

pub fn set_txn_size(&mut self, v: u64)[src]

pub fn get_for_update_ts(&self) -> u64[src]

pub fn clear_for_update_ts(&mut self)[src]

pub fn set_for_update_ts(&mut self, v: u64)[src]

pub fn get_min_commit_ts(&self) -> u64[src]

pub fn clear_min_commit_ts(&mut self)[src]

pub fn set_min_commit_ts(&mut self, v: u64)[src]

pub fn get_use_async_commit(&self) -> bool[src]

pub fn clear_use_async_commit(&mut self)[src]

pub fn set_use_async_commit(&mut self, v: bool)[src]

pub fn get_secondaries(&self) -> &[Vec<u8>][src]

pub fn clear_secondaries(&mut self)[src]

pub fn set_secondaries(&mut self, v: RepeatedField<Vec<u8>>)[src]

pub fn mut_secondaries(&mut self) -> &mut RepeatedField<Vec<u8>>[src]

pub fn take_secondaries(&mut self) -> RepeatedField<Vec<u8>>[src]

pub fn get_try_one_pc(&self) -> bool[src]

pub fn clear_try_one_pc(&mut self)[src]

pub fn set_try_one_pc(&mut self, v: bool)[src]

pub fn get_max_commit_ts(&self) -> u64[src]

pub fn clear_max_commit_ts(&mut self)[src]

pub fn set_max_commit_ts(&mut self, v: u64)[src]

Trait Implementations

impl Clear for PrewriteRequest[src]

impl Clone for PrewriteRequest[src]

impl Debug for PrewriteRequest[src]

impl Default for PrewriteRequest[src]

impl<'a> Default for &'a PrewriteRequest[src]

impl Message for PrewriteRequest[src]

impl PartialEq<PrewriteRequest> for PrewriteRequest[src]

impl PbPrint for PrewriteRequest[src]

impl ProtobufValue for PrewriteRequest[src]

impl StructuralPartialEq for PrewriteRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for PrewriteRequest

impl Send for PrewriteRequest

impl Sync for PrewriteRequest

impl Unpin for PrewriteRequest

impl UnwindSafe for PrewriteRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.