[][src]Struct gcp_client::google::storage::v1::GetObjectMediaRequest

pub struct GetObjectMediaRequest {
    pub bucket: String,
    pub object: String,
    pub generation: i64,
    pub read_offset: i64,
    pub read_limit: 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 common_object_request_params: Option<CommonObjectRequestParams>,
    pub common_request_params: Option<CommonRequestParams>,
}

Request message for GetObjectMedia.

Fields

bucket: String

The name of the bucket containing the object to read.

object: String

The name of the object to read.

generation: i64

If present, selects a specific revision of this object (as opposed to the latest version, the default).

read_offset: i64

The offset for the first byte to return in the read, relative to the start of the object.

A negative read_offset value will be interpreted as the number of bytes back from the end of the object to be returned. For example, if an object's length is 15 bytes, a GetObjectMediaRequest with read_offset = -5 and read_limit = 3 would return bytes 10 through 12 of the object.

read_limit: i64

The maximum number of data bytes the server is allowed to return in the sum of all Object messages. A read_limit of zero indicates that there is no limit, and a negative read_limit will cause an error.

If the stream returns fewer bytes than allowed by the read_limit and no error occurred, the stream includes all data from the read_offset to the end of the resource.

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.

common_object_request_params: Option<CommonObjectRequestParams>

A set of parameters common to Storage API requests concerning an object.

common_request_params: Option<CommonRequestParams>

A set of parameters common to all Storage API requests.

Trait Implementations

impl Clone for GetObjectMediaRequest[src]

impl Debug for GetObjectMediaRequest[src]

impl Default for GetObjectMediaRequest[src]

impl Message for GetObjectMediaRequest[src]

impl PartialEq<GetObjectMediaRequest> for GetObjectMediaRequest[src]

impl StructuralPartialEq for GetObjectMediaRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]