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: String
store_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: String
The 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>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.