[][src]Struct firestore_grpc_cloudrun::CreateDocumentRequest

pub struct CreateDocumentRequest {
    pub parent: String,
    pub collection_id: String,
    pub document_id: String,
    pub document: Option<Document>,
    pub mask: Option<DocumentMask>,
}

The request for [Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].

Fields

parent: String

Required. The parent resource. For example: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}

collection_id: String

Required. The collection ID, relative to parent, to list. For example: chatrooms.

document_id: String

The client-assigned document ID to use for this document.

Optional. If not specified, an ID will be assigned by the service.

document: Option<Document>

Required. The document to create. name must not be set.

mask: Option<DocumentMask>

The fields to return. If not set, returns all fields.

If the document has a field that is not present in this mask, that field will not be returned in the response.

Trait Implementations

impl Clone for CreateDocumentRequest[src]

impl Debug for CreateDocumentRequest[src]

impl Default for CreateDocumentRequest[src]

impl Message for CreateDocumentRequest[src]

impl PartialEq<CreateDocumentRequest> for CreateDocumentRequest[src]

impl StructuralPartialEq for CreateDocumentRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for CreateDocumentRequest

impl Send for CreateDocumentRequest

impl Sync for CreateDocumentRequest

impl Unpin for CreateDocumentRequest

impl UnwindSafe for CreateDocumentRequest

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>, 
[src]

impl<T> WithSubscriber for T[src]