pub struct GetObjectResponse {
pub success: bool,
pub error: Option<String>,
pub initial_chunk: Option<Chunk>,
pub content_length: u64,
pub content_type: Option<String>,
pub content_encoding: Option<String>,
}
Expand description
Response to GetObject
Fields§
§success: bool
indication whether the request was successful
error: Option<String>
If success is false, this may contain an error
initial_chunk: Option<Chunk>
The provider may begin the download by returning a first chunk
content_length: u64
Length of the content. (for multi-part downloads, this may not be the same as the length of the initial chunk)
content_type: Option<String>
A standard MIME type describing the format of the object data.
content_encoding: Option<String>
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type
Trait Implementations§
source§impl Clone for GetObjectResponse
impl Clone for GetObjectResponse
source§fn clone(&self) -> GetObjectResponse
fn clone(&self) -> GetObjectResponse
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 GetObjectResponse
impl Debug for GetObjectResponse
source§impl Default for GetObjectResponse
impl Default for GetObjectResponse
source§fn default() -> GetObjectResponse
fn default() -> GetObjectResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetObjectResponse
impl<'de> Deserialize<'de> for GetObjectResponse
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<GetObjectResponse> for GetObjectResponse
impl PartialEq<GetObjectResponse> for GetObjectResponse
source§fn eq(&self, other: &GetObjectResponse) -> bool
fn eq(&self, other: &GetObjectResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.