pub struct StoredImage {
pub hash: String,
pub path: String,
pub tone: Option<String>,
}Expand description
Result of storing an object in content-addressable storage.
Fields§
§hash: StringBLAKE3 hash of the image or file content.
path: StringAbsolute path to the stored object file.
tone: Option<String>Image tone detected upon upload.
Trait Implementations§
Source§impl Clone for StoredImage
impl Clone for StoredImage
Source§fn clone(&self) -> StoredImage
fn clone(&self) -> StoredImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StoredImage
impl Debug for StoredImage
Source§impl<'de> Deserialize<'de> for StoredImage
impl<'de> Deserialize<'de> for StoredImage
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 StoredImage
impl RefUnwindSafe for StoredImage
impl Send for StoredImage
impl Sync for StoredImage
impl Unpin for StoredImage
impl UnsafeUnpin for StoredImage
impl UnwindSafe for StoredImage
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