Struct googapis::google::devtools::resultstore::v2::File [−][src]
pub struct File {
pub uid: String,
pub uri: String,
pub length: Option<i64>,
pub content_type: String,
pub archive_entry: Option<ArchiveEntry>,
pub content_viewer: String,
pub hidden: bool,
pub description: String,
pub digest: String,
pub hash_type: i32,
}
Expand description
The metadata for a file or an archive file entry.
Fields
uid: String
The identifier of the file or archive entry. User-provided, must be unique for the repeated field it is in. When an Append RPC is called with a Files field populated, if a File already exists with this ID, that File will be overwritten with the new File proto.
uri: String
The URI of a file. This could also be the URI of an entire archive. Most log data doesn’t need to be stored forever, so a ttl is suggested. Note that if you ever move or delete the file at this URI, the link from the server will be broken.
length: Option<i64>
The length of the file in bytes. Allows the filesize to be shown in the UI. Omit if file is still being written or length is not known. This could also be the length of an entire archive.
content_type: String
The content-type (aka MIME-type) of the file. This is sent to the web browser so it knows how to handle the file. (e.g. text/plain, image/jpeg, text/html, etc). For zip archives, use “application/zip”.
archive_entry: Option<ArchiveEntry>
If the above path, length, and content_type are referring to an archive, and you wish to refer to a particular entry within that archive, put the particular archive entry data here.
content_viewer: String
A url to a content display app/site for this file or archive entry.
Whether to hide this file or archive entry in the UI. Defaults to false. A checkbox lets users see hidden files, but they’re hidden by default.
description: String
A short description of what this file or archive entry contains. This description should help someone viewing the list of these files to understand the purpose of this file and what they would want to view it for.
digest: String
The digest of this file in hexadecimal-like string if known.
hash_type: i32
The algorithm corresponding to the digest if known.
Implementations
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for File
impl UnwindSafe for File
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more