pub struct ImageTagIndex(pub i16);
Expand description
Wrapper type around i16
, represents the index of an image tag.
This is used instead of UUIDs for image tags as they aren’t created dynamically and a simple and consistent way to identify them is desired.
Tuple Fields§
§0: i16
Trait Implementations§
Source§impl Clone for ImageTagIndex
impl Clone for ImageTagIndex
Source§fn clone(&self) -> ImageTagIndex
fn clone(&self) -> ImageTagIndex
Returns a copy of the value. Read more
1.0.0 · 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 ImageTagIndex
impl Debug for ImageTagIndex
Source§impl<'de> Deserialize<'de> for ImageTagIndex
impl<'de> Deserialize<'de> for ImageTagIndex
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 From<ImageTagIndex> for i16
impl From<ImageTagIndex> for i16
Source§fn from(t: ImageTagIndex) -> Self
fn from(t: ImageTagIndex) -> Self
Converts to this type from the input type.
Source§impl From<ImageTagIndex> for i64
impl From<ImageTagIndex> for i64
Needed to cast i16 into i64 range for algolia indexing
Source§fn from(t: ImageTagIndex) -> Self
fn from(t: ImageTagIndex) -> Self
Converts to this type from the input type.
Source§impl Hash for ImageTagIndex
impl Hash for ImageTagIndex
Source§impl PartialEq for ImageTagIndex
impl PartialEq for ImageTagIndex
Source§impl Serialize for ImageTagIndex
impl Serialize for ImageTagIndex
impl Copy for ImageTagIndex
impl Eq for ImageTagIndex
impl StructuralPartialEq for ImageTagIndex
Auto Trait Implementations§
impl Freeze for ImageTagIndex
impl RefUnwindSafe for ImageTagIndex
impl Send for ImageTagIndex
impl Sync for ImageTagIndex
impl Unpin for ImageTagIndex
impl UnwindSafe for ImageTagIndex
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