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
sourceimpl Clone for GetObjectRequest
impl Clone for GetObjectRequest
sourcefn clone(&self) -> GetObjectRequest
fn clone(&self) -> GetObjectRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GetObjectRequest
impl Debug for GetObjectRequest
sourceimpl Default for GetObjectRequest
impl Default for GetObjectRequest
sourcefn default() -> GetObjectRequest
fn default() -> GetObjectRequest
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GetObjectRequest
impl<'de> Deserialize<'de> for GetObjectRequest
sourcefn 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
sourceimpl PartialEq<GetObjectRequest> for GetObjectRequest
impl PartialEq<GetObjectRequest> for GetObjectRequest
sourcefn eq(&self, other: &GetObjectRequest) -> bool
fn eq(&self, other: &GetObjectRequest) -> bool
sourceimpl Serialize for GetObjectRequest
impl Serialize for GetObjectRequest
impl Eq for GetObjectRequest
impl StructuralEq for GetObjectRequest
impl StructuralPartialEq for GetObjectRequest
Auto Trait Implementations
impl RefUnwindSafe for GetObjectRequest
impl Send for GetObjectRequest
impl Sync for GetObjectRequest
impl Unpin for GetObjectRequest
impl UnwindSafe for GetObjectRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more