Enum gapi_grpc::google::privacy::dlp::v2::FileType[][src]

#[repr(i32)]pub enum FileType {
    Unspecified,
    BinaryFile,
    TextFile,
    Image,
    Word,
    Pdf,
    Avro,
    Csv,
    Tsv,
}

Definitions of file type groups to scan. New types will be added to this list.

Variants

Unspecified

Includes all files.

BinaryFile

Includes all file extensions not covered by another entry. Binary scanning attempts to convert the content of the file to utf_8 to scan the file. If you wish to avoid this fall back, specify one or more of the other FileType’s in your storage scan.

TextFile

Included file extensions: asc, brf, c, cc, cpp, csv, cxx, c++, cs, css, dart, eml, go, h, hh, hpp, hxx, h++, hs, html, htm, shtml, shtm, xhtml, lhs, ini, java, js, json, ocaml, md, mkd, markdown, m, ml, mli, pl, pm, php, phtml, pht, py, pyw, rb, rbw, rs, rc, scala, sh, sql, tex, txt, text, tsv, vcard, vcs, wml, xml, xsl, xsd, yml, yaml.

Image

Included file extensions: bmp, gif, jpg, jpeg, jpe, png. bytes_limit_per_file has no effect on image files. Image inspection is restricted to ‘global’, ‘us’, ‘asia’, and ‘europe’.

Word

Word files >30 MB will be scanned as binary files. Included file extensions: docx, dotx, docm, dotm

Pdf

PDF files >30 MB will be scanned as binary files. Included file extensions: pdf

Avro

Included file extensions: avro

Csv

Included file extensions: csv

Tsv

Included file extensions: tsv

Implementations

impl FileType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of FileType.

pub fn from_i32(value: i32) -> Option<FileType>[src]

Converts an i32 to a FileType, or None if value is not a valid variant.

Trait Implementations

impl Clone for FileType[src]

impl Copy for FileType[src]

impl Debug for FileType[src]

impl Default for FileType[src]

impl Eq for FileType[src]

impl From<FileType> for i32[src]

impl Hash for FileType[src]

impl Ord for FileType[src]

impl PartialEq<FileType> for FileType[src]

impl PartialOrd<FileType> for FileType[src]

impl StructuralEq for FileType[src]

impl StructuralPartialEq for FileType[src]

Auto Trait Implementations

impl RefUnwindSafe for FileType

impl Send for FileType

impl Sync for FileType

impl Unpin for FileType

impl UnwindSafe for FileType

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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]