pub struct AssetMeta {
pub id: String,
pub filename: String,
pub mime_type: Option<String>,
pub size: Option<u64>,
pub url: Option<String>,
pub created_at: Option<String>,
pub author: Option<String>,
pub cached: bool,
pub local_path: Option<String>,
pub checksum_sha256: Option<String>,
pub analysis: Option<AssetAnalysis>,
}Expand description
Metadata describing an asset — used for listings and enriched responses.
This type intentionally does NOT contain the file bytes; use
AssetInput for uploads or a dedicated download method to fetch content.
Fields§
§id: StringStable identifier for the asset within devboy (UUID or provider id).
filename: String§mime_type: Option<String>MIME type (best-effort; may be None for unknown binaries).
size: Option<u64>File size in bytes if known.
url: Option<String>Remote URL at the provider (if available).
created_at: Option<String>Creation timestamp (ISO 8601).
Username / display name of the uploader if known.
cached: boolWhether the file is currently present in the local cache.
local_path: Option<String>Absolute local path if the file is cached locally.
checksum_sha256: Option<String>SHA-256 checksum of the content if known.
analysis: Option<AssetAnalysis>Result of analysis (Levels 1-2 built-in or Level 3 semantic).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetMeta
impl<'de> Deserialize<'de> for AssetMeta
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 StructuralPartialEq for AssetMeta
Auto Trait Implementations§
impl Freeze for AssetMeta
impl RefUnwindSafe for AssetMeta
impl Send for AssetMeta
impl Sync for AssetMeta
impl Unpin for AssetMeta
impl UnsafeUnpin for AssetMeta
impl UnwindSafe for AssetMeta
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