#[repr(i32)]pub enum FileType {
Unspecified = 0,
BinaryFile = 1,
TextFile = 2,
Image = 3,
Word = 5,
Pdf = 6,
Avro = 7,
Csv = 8,
Tsv = 9,
Powerpoint = 11,
Excel = 12,
}
Expand description
Definitions of file type groups to scan. New types will be added to this list.
Variants§
Unspecified = 0
Includes all files.
BinaryFile = 1
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 file types in your storage scan.
TextFile = 2
Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
Image = 3
Included file extensions:
bmp, gif, jpg, jpeg, jpe, png. Setting
[bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]
or
[bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]
has no effect on image files. Image inspection is restricted to the
global
, us
, asia
, and europe
regions.
Word = 5
Microsoft Word files larger than 30 MB will be scanned as binary files.
Included file extensions:
docx, dotx, docm, dotm. Setting bytes_limit_per_file
or
bytes_limit_per_file_percent
has no effect on Word files.
Pdf = 6
PDF files larger than 30 MB will be scanned as binary files.
Included file extensions:
pdf. Setting bytes_limit_per_file
or bytes_limit_per_file_percent
has no effect on PDF files.
Avro = 7
Included file extensions: avro
Csv = 8
Included file extensions: csv
Tsv = 9
Included file extensions: tsv
Powerpoint = 11
Microsoft PowerPoint files larger than 30 MB will be scanned as binary
files. Included file extensions:
pptx, pptm, potx, potm, pot. Setting bytes_limit_per_file
or
bytes_limit_per_file_percent
has no effect on PowerPoint files.
Excel = 12
Microsoft Excel files larger than 30 MB will be scanned as binary files.
Included file extensions:
xlsx, xlsm, xltx, xltm. Setting bytes_limit_per_file
or
bytes_limit_per_file_percent
has no effect on Excel files.
Implementations§
source§impl FileType
impl FileType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for FileType
impl Ord for FileType
source§impl PartialEq for FileType
impl PartialEq for FileType
source§impl PartialOrd for FileType
impl PartialOrd for FileType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for FileType
impl TryFrom<i32> for FileType
§type Error = DecodeError
type Error = DecodeError
impl Copy for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request