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

pub struct InsertObjectRequest {
    pub write_offset: i64,
    pub object_checksums: Option<ObjectChecksums>,
    pub finish_write: bool,
    pub common_object_request_params: Option<CommonObjectRequestParams>,
    pub common_request_params: Option<CommonRequestParams>,
    pub first_message: Option<FirstMessage>,
    pub data: Option<Data>,
}

Message for writing an object.

Fields

write_offset: i64

Required. The offset from the beginning of the object at which the data should be written.

In the first InsertObjectRequest of a InsertObject() action, it indicates the initial offset for the Insert() call. The value must be equal to the committed_size that a call to QueryWriteStatus() would return (0 if this is the first write to the object).

On subsequent calls, this value must be no larger than the sum of the first write_offset and the sizes of all data chunks sent previously on this stream.

An incorrect value will cause an error.

object_checksums: Option<ObjectChecksums>

Checksums for the complete object. If the checksums computed by the service don't match the specifified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).

finish_write: bool

If true, this indicates that the write is complete. Sending any InsertObjectRequests subsequent to one in which finish_write is true will cause an error. For a non-resumable write (where the upload_id was not set in the first message), it is an error not to set this field in the final message of the stream.

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.

first_message: Option<FirstMessage>

The first message of each stream should set one of the following.

data: Option<Data>

A portion of the data for the object.

Trait Implementations

impl Clone for InsertObjectRequest[src]

impl Debug for InsertObjectRequest[src]

impl Default for InsertObjectRequest[src]

impl Message for InsertObjectRequest[src]

impl PartialEq<InsertObjectRequest> for InsertObjectRequest[src]

impl StructuralPartialEq for InsertObjectRequest[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]