pub struct ImageAnswer {
pub path: Option<String>,
pub record: ImageRecord,
}Expand description
What an image read answers.
The path is absolute on this server’s own filesystem, and is the whole of the answer about the bytes: nothing here renders them, encodes them or serves them. It is absent when the record is intact and the file is not, which is a different answer from there being no such image.
Fields§
§path: Option<String>Where its bytes are, absolute on this host.
record: ImageRecordThe record.
Trait Implementations§
Source§impl Clone for ImageAnswer
impl Clone for ImageAnswer
Source§impl Debug for ImageAnswer
impl Debug for ImageAnswer
Source§impl<'de> Deserialize<'de> for ImageAnswer
impl<'de> Deserialize<'de> for ImageAnswer
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
Source§impl PartialEq for ImageAnswer
impl PartialEq for ImageAnswer
Source§impl Serialize for ImageAnswer
impl Serialize for ImageAnswer
impl StructuralPartialEq for ImageAnswer
Auto Trait Implementations§
impl Freeze for ImageAnswer
impl RefUnwindSafe for ImageAnswer
impl Send for ImageAnswer
impl Sync for ImageAnswer
impl Unpin for ImageAnswer
impl UnsafeUnpin for ImageAnswer
impl UnwindSafe for ImageAnswer
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