Struct vss_client::types::GetObjectRequest
source · pub struct GetObjectRequest {
pub store_id: String,
pub key: String,
}Expand description
Request payload to be used for GetObject API call to server.
Fields§
§store_id: Stringstore_id is a keyspace identifier.
Ref: https://en.wikipedia.org/wiki/Keyspace_(distributed_data_store)
All APIs operate within a single store_id.
It is up to clients to use single or multiple stores for their use-case.
This can be used for client-isolation/ rate-limiting / throttling on the server-side.
Authorization and billing can also be performed at the store_id level.
key: StringThe key of the value to be fetched.
If the specified key does not exist, returns ErrorCode.NO_SUCH_KEY_EXCEPTION in the
the ErrorResponse.
Consistency Guarantee:
Get(read) operations against a key are consistent reads and will reflect all previous writes,
since Put/Write provides read-after-write and read-after-update consistency guarantees.
Read Isolation:
Get/Read operations against a key are ensured to have read-committed isolation.
Ref: https://en.wikipedia.org/wiki/Isolation_(database_systems)#Read_committed
Trait Implementations§
source§impl Clone for GetObjectRequest
impl Clone for GetObjectRequest
source§fn clone(&self) -> GetObjectRequest
fn clone(&self) -> GetObjectRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetObjectRequest
impl Debug for GetObjectRequest
source§impl Default for GetObjectRequest
impl Default for GetObjectRequest
source§impl Message for GetObjectRequest
impl Message for GetObjectRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.source§impl PartialEq for GetObjectRequest
impl PartialEq for GetObjectRequest
source§fn eq(&self, other: &GetObjectRequest) -> bool
fn eq(&self, other: &GetObjectRequest) -> bool
self and other values to be equal, and is used
by ==.