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
sourceimpl Clone for GetObjectResponse
impl Clone for GetObjectResponse
sourcefn clone(&self) -> GetObjectResponse
fn clone(&self) -> GetObjectResponse
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 GetObjectResponse
impl Debug for GetObjectResponse
sourceimpl Default for GetObjectResponse
impl Default for GetObjectResponse
sourcefn default() -> GetObjectResponse
fn default() -> GetObjectResponse
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GetObjectResponse
impl<'de> Deserialize<'de> for GetObjectResponse
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<GetObjectResponse> for GetObjectResponse
impl PartialEq<GetObjectResponse> for GetObjectResponse
sourcefn eq(&self, other: &GetObjectResponse) -> bool
fn eq(&self, other: &GetObjectResponse) -> bool
sourceimpl Serialize for GetObjectResponse
impl Serialize for GetObjectResponse
impl Eq for GetObjectResponse
impl StructuralEq for GetObjectResponse
impl StructuralPartialEq for GetObjectResponse
Auto Trait Implementations
impl RefUnwindSafe for GetObjectResponse
impl Send for GetObjectResponse
impl Sync for GetObjectResponse
impl Unpin for GetObjectResponse
impl UnwindSafe for GetObjectResponse
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