pub struct File {
pub create_time: Option<DateTime<Utc>>,
pub hashes: Option<Vec<Hash>>,
pub name: Option<String>,
pub owner: Option<String>,
pub size_bytes: Option<i64>,
pub update_time: Option<DateTime<Utc>>,
}Expand description
Files store content that is potentially associated with Packages or Versions.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations repositories files get projects (response)
Fields§
§create_time: Option<DateTime<Utc>>Output only. The time when the File was created.
hashes: Option<Vec<Hash>>The hashes of the file content.
name: Option<String>The name of the file, for example: projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt. If the file ID part contains slashes, they are escaped.
owner: Option<String>The name of the Package or Version that owns this file, if any.
size_bytes: Option<i64>The size of the File in bytes.
update_time: Option<DateTime<Utc>>Output only. The time when the File was last updated.
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 ResponseResult for File
Auto Trait Implementations§
impl Freeze for File
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