pub struct FileInfo {
pub id: Option<u64>,
pub file_id: String,
pub name: String,
pub description: Option<String>,
pub size: u64,
pub md5: String,
pub gmt_create: Option<String>,
pub url: Option<String>,
pub region: Option<String>,
pub user_id: Option<String>,
pub api_key_id: Option<String>,
pub purpose: Option<String>,
}Expand description
文件信息
Fields§
§id: Option<u64>ID (列表接口有此字段,单个文件查询可能没有)
file_id: String文件ID
name: String文件名
description: Option<String>描述
size: u64文件大小(字节)
md5: StringMD5
gmt_create: Option<String>创建时间
url: Option<String>URL
region: Option<String>区域 (列表接口有此字段,单个文件查询可能没有)
user_id: Option<String>用户ID (列表接口有此字段,单个文件查询可能没有)
api_key_id: Option<String>API密钥ID (列表接口有此字段,单个文件查询可能没有)
purpose: Option<String>用途 (列表接口有此字段,单个文件查询可能没有)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
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
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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