Struct google_cloud_storage::http::objects::get::GetObjectRequest
source · pub struct GetObjectRequest {
pub bucket: String,
pub object: String,
pub generation: Option<i64>,
pub if_generation_match: Option<i64>,
pub if_generation_not_match: Option<i64>,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub projection: Option<Projection>,
pub encryption: Option<Encryption>,
}Expand description
Request message for GetObject.
Fields§
§bucket: StringRequired. Name of the bucket in which the object resides.
object: StringRequired. Name of the object.
generation: Option<i64>If present, selects a specific revision of this object (as opposed to the latest version, the default).
if_generation_match: Option<i64>Makes the operation conditional on whether the object’s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
if_generation_not_match: Option<i64>Makes the operation conditional on whether the object’s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
if_metageneration_match: Option<i64>Makes the operation conditional on whether the object’s current metageneration matches the given value.
if_metageneration_not_match: Option<i64>Makes the operation conditional on whether the object’s current metageneration does not match the given value.
projection: Option<Projection>Set of properties to return. Defaults to NO_ACL.
encryption: Option<Encryption>A set of parameters common to Storage API requests concerning an object.
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§fn default() -> GetObjectRequest
fn default() -> GetObjectRequest
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>,
source§impl PartialEq<GetObjectRequest> for GetObjectRequest
impl PartialEq<GetObjectRequest> for GetObjectRequest
source§fn eq(&self, other: &GetObjectRequest) -> bool
fn eq(&self, other: &GetObjectRequest) -> bool
self and other values to be equal, and is used
by ==.source§impl 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.