Struct gapi_grpc::google::cloud::dialogflow::v2beta1::ImportDocumentTemplate[][src]

pub struct ImportDocumentTemplate {
    pub mime_type: String,
    pub knowledge_types: Vec<i32>,
    pub metadata: HashMap<String, String>,
}

The template used for importing documents.

Fields

mime_type: String

Required. The MIME type of the document.

knowledge_types: Vec<i32>

Required. The knowledge type of document content.

metadata: HashMap<String, String>

Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document’s title, an external URL distinct from the document’s content_uri, etc. The max size of a key or a value of the metadata is 1024 bytes.

Implementations

impl ImportDocumentTemplate[src]

pub fn knowledge_types(
    &self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<KnowledgeType>>
[src]

Returns an iterator which yields the valid enum values contained in knowledge_types.

pub fn push_knowledge_types(&mut self, value: KnowledgeType)[src]

Appends the provided enum value to knowledge_types.

Trait Implementations

impl Clone for ImportDocumentTemplate[src]

impl Debug for ImportDocumentTemplate[src]

impl Default for ImportDocumentTemplate[src]

impl Message for ImportDocumentTemplate[src]

impl PartialEq<ImportDocumentTemplate> for ImportDocumentTemplate[src]

impl StructuralPartialEq for ImportDocumentTemplate[src]

Auto Trait Implementations

impl RefUnwindSafe for ImportDocumentTemplate

impl Send for ImportDocumentTemplate

impl Sync for ImportDocumentTemplate

impl Unpin for ImportDocumentTemplate

impl UnwindSafe for ImportDocumentTemplate

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> 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]