pub struct AssetListResponse {
pub assets: Vec<AssetDto>,
pub total: i64,
pub used_count: i64,
pub orphan_count: i64,
pub purgeable_count: i64,
pub purgeable_bytes: i64,
}Expand description
素材分页列表响应。
附带各筛选维度的计数(tabs 展示)与可清理孤儿的统计(清理按钮展示), 避免前端为徽标数字额外发请求。
Fields§
§assets: Vec<AssetDto>§total: i64当前筛选条件下的总数(分页用)。
used_count: i64全部被引用素材数(「引用中」tab)。
orphan_count: i64全部无引用素材数(「孤儿」tab,含 7 天保护窗内的)。
purgeable_count: i64可一键清理的孤儿数(无引用且 created_at 早于 7 天前)。
purgeable_bytes: i64可清理孤儿的总字节数。
Trait Implementations§
Source§impl Clone for AssetListResponse
impl Clone for AssetListResponse
Source§fn clone(&self) -> AssetListResponse
fn clone(&self) -> AssetListResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetListResponse
impl Debug for AssetListResponse
Source§impl<'de> Deserialize<'de> for AssetListResponse
impl<'de> Deserialize<'de> for AssetListResponse
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 AssetListResponse
impl RefUnwindSafe for AssetListResponse
impl Send for AssetListResponse
impl Sync for AssetListResponse
impl Unpin for AssetListResponse
impl UnsafeUnpin for AssetListResponse
impl UnwindSafe for AssetListResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.
§impl<T> Transportable for Twhere
T: Serialize + DeserializeOwned + 'static,
impl<T> Transportable for Twhere
T: Serialize + DeserializeOwned + 'static,
§fn transport_to_bytes(&self) -> Vec<u8> ⓘ
fn transport_to_bytes(&self) -> Vec<u8> ⓘ
Serialize the type to a byte vector for transport
§fn transport_from_bytes(bytes: &[u8]) -> Result<T, Error<Error>>
fn transport_from_bytes(bytes: &[u8]) -> Result<T, Error<Error>>
Deserialize the type from a byte slice