pub struct GetObjectRequest {
pub object_id: ObjectId,
pub container_id: ContainerId,
pub range_start: Option<u64>,
pub range_end: Option<u64>,
}
Expand description
Parameter to GetObject
Fields§
§object_id: ObjectId
object to download
container_id: ContainerId
object’s container
range_start: Option<u64>
Requested start of object to retrieve. The first byte is at offset 0. Range values are inclusive. If rangeStart is beyond the end of the file, an empty chunk will be returned with isLast == true
range_end: Option<u64>
Requested end of object to retrieve. Defaults to the object’s size. It is not an error for rangeEnd to be greater than the object size. Range values are inclusive.
Trait Implementations§
source§impl Clone for GetObjectRequest
impl Clone for GetObjectRequest
source§fn clone(&self) -> GetObjectRequest
fn clone(&self) -> GetObjectRequest
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 GetObjectRequest
impl Debug for GetObjectRequest
source§impl Default for GetObjectRequest
impl Default for GetObjectRequest
source§fn default() -> GetObjectRequest
fn default() -> GetObjectRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetObjectRequest
impl<'de> Deserialize<'de> for GetObjectRequest
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 PartialEq<GetObjectRequest> for GetObjectRequest
impl PartialEq<GetObjectRequest> for GetObjectRequest
source§fn eq(&self, other: &GetObjectRequest) -> bool
fn eq(&self, other: &GetObjectRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.