Struct AttachmentCodec
pub struct AttachmentCodec<T> {
pub encode: fn(&T) -> Result<BTreeMap<JavaString, Tag>, AttachmentError>,
pub decode: fn(&BTreeMap<JavaString, Tag>) -> Result<T, AttachmentError>,
}Expand description
The optional on-disk representation of an attachment.
Fields§
§encode: fn(&T) -> Result<BTreeMap<JavaString, Tag>, AttachmentError>§decode: fn(&BTreeMap<JavaString, Tag>) -> Result<T, AttachmentError>Auto Trait Implementations§
impl<T> Freeze for AttachmentCodec<T>
impl<T> RefUnwindSafe for AttachmentCodec<T>
impl<T> Send for AttachmentCodec<T>
impl<T> Sync for AttachmentCodec<T>
impl<T> Unpin for AttachmentCodec<T>
impl<T> UnsafeUnpin for AttachmentCodec<T>
impl<T> UnwindSafe for AttachmentCodec<T>
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