Struct gapi_grpc::google::actions::sdk::v2::DataFile[][src]

pub struct DataFile {
    pub file_path: String,
    pub content_type: String,
    pub payload: Vec<u8>,
}

Represents a single file which contains unstructured data. Examples include image files, audio files, and cloud function source code.

Fields

file_path: String

Relative path of the data file from the project root in the SDK file structure. Allowed file paths: - Images: resources/images/{multiple directories}?/{ImageName}.{extension} - Audio: resources/audio/{multiple directories}?/{AudioFileName}.{extension} - Inline Cloud Function Code: webhooks/{WebhookName}.zip Allowed extensions: - Images: png, jpg, jpeg - Audio: mp3, mpeg - Inline Cloud Functions: zip

content_type: String

Required. The content type of this asset. Example: text/html. The content type must comply with the specification (http://www.w3.org/Protocols/rfc1341/4_Content-Type.html). Cloud functions must be in zip format and the content type should be application/zip;zip_type=cloud_function. The zip_type parameter indicates that the zip is for a cloud function.

payload: Vec<u8>

Content of the data file. Examples would be raw bytes of images, audio files, or cloud function zip format. There is 10 MB strict limit on the payload size.

Trait Implementations

impl Clone for DataFile[src]

impl Debug for DataFile[src]

impl Default for DataFile[src]

impl Message for DataFile[src]

impl PartialEq<DataFile> for DataFile[src]

impl StructuralPartialEq for DataFile[src]

Auto Trait Implementations

impl RefUnwindSafe for DataFile

impl Send for DataFile

impl Sync for DataFile

impl Unpin for DataFile

impl UnwindSafe for DataFile

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]