pub(crate) struct UploadOutcome {
pub url: String,
pub reused: bool,
pub width: u32,
pub height: u32,
pub mime: String,
}Expand description
单条图片入库的结果。
Fields§
§url: String可直接嵌入 Markdown 的相对 URL:/uploads/YYYY/MM/DD/HHMMSS.uuid.ext。
reused: bool是否命中已登记素材(内容去重或并发竞态复用)。
width: u32§height: u32§mime: String最终 MIME(转码后;JPEG→WebP 成功则为 image/webp)。
Trait Implementations§
Source§impl Debug for UploadOutcome
impl Debug for UploadOutcome
Auto Trait Implementations§
impl Freeze for UploadOutcome
impl RefUnwindSafe for UploadOutcome
impl Send for UploadOutcome
impl Sync for UploadOutcome
impl Unpin for UploadOutcome
impl UnsafeUnpin for UploadOutcome
impl UnwindSafe for UploadOutcome
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
§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.