Struct google_securitycenter1::api::File
source · pub struct File {
pub contents: Option<String>,
pub disk_path: Option<DiskPath>,
pub hashed_size: Option<i64>,
pub partially_hashed: Option<bool>,
pub path: Option<String>,
pub sha256: Option<String>,
pub size: Option<i64>,
}
Expand description
File information about the related binary/library used by an executable, or the script used by a script interpreter
This type is not used in any activity, and only used as part of another schema.
Fields§
§contents: Option<String>
Prefix of the file contents as a JSON-encoded string.
disk_path: Option<DiskPath>
Path of the file in terms of underlying disk/partition identifiers.
hashed_size: Option<i64>
The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
partially_hashed: Option<bool>
True when the hash covers only a prefix of the file.
path: Option<String>
Absolute path of the file as a JSON encoded string.
sha256: Option<String>
SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
size: Option<i64>
Size of the file in bytes.
Trait Implementations§
source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for File
Auto Trait Implementations§
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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
Mutably borrows from an owned value. Read more