pub enum Photo {
Empty(PhotoEmpty),
Photo(Photo),
}Expand description
Variants§
Empty(PhotoEmpty)
Photo(Photo)
Trait Implementations§
Source§impl Deserializable for Photo
impl Deserializable for Photo
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<PhotoEmpty> for Photo
impl From<PhotoEmpty> for Photo
Source§fn from(x: PhotoEmpty) -> Self
fn from(x: PhotoEmpty) -> Self
Converts to this type from the input type.
Source§impl Serializable for Photo
impl Serializable for Photo
Source§impl TryFrom<Photo> for PhotoEmpty
impl TryFrom<Photo> for PhotoEmpty
impl StructuralPartialEq for Photo
Auto Trait Implementations§
impl Freeze for Photo
impl RefUnwindSafe for Photo
impl Send for Photo
impl Sync for Photo
impl Unpin for Photo
impl UnsafeUnpin for Photo
impl UnwindSafe for Photo
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