Struct parse_mediawiki_sql::schemas::Image
source · [−]pub struct Image<'input> {Show 13 fields
pub name: PageTitle,
pub size: u32,
pub width: i32,
pub height: i32,
pub metadata: String,
pub bits: i32,
pub media_type: MediaType<'input>,
pub major_mime: MajorMime<'input>,
pub minor_mime: MinorMime<'input>,
pub description_id: CommentId,
pub actor: ActorId,
pub timestamp: Timestamp,
pub sha1: Sha1<'input>,
}
Expand description
Represents a row in the image
table.
Fields
name: PageTitle
size: u32
width: i32
height: i32
metadata: String
bits: i32
media_type: MediaType<'input>
major_mime: MajorMime<'input>
minor_mime: MinorMime<'input>
description_id: CommentId
actor: ActorId
timestamp: Timestamp
sha1: Sha1<'input>
Trait Implementations
sourceimpl<'de: 'input, 'input> Deserialize<'de> for Image<'input>
impl<'de: 'input, 'input> Deserialize<'de> for Image<'input>
sourcefn 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
sourceimpl<'input> FromSqlTuple<'input> for Image<'input>
impl<'input> FromSqlTuple<'input> for Image<'input>
fn from_sql_tuple(s: &'input [u8]) -> IResult<'input, Self>
sourceimpl<'input> Ord for Image<'input>
impl<'input> Ord for Image<'input>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'input> PartialEq<Image<'input>> for Image<'input>
impl<'input> PartialEq<Image<'input>> for Image<'input>
sourceimpl<'input> PartialOrd<Image<'input>> for Image<'input>
impl<'input> PartialOrd<Image<'input>> for Image<'input>
sourcefn partial_cmp(&self, other: &Image<'input>) -> Option<Ordering>
fn partial_cmp(&self, other: &Image<'input>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'input> Eq for Image<'input>
impl<'input> StructuralEq for Image<'input>
impl<'input> StructuralPartialEq for Image<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for Image<'input>
impl<'input> Send for Image<'input>
impl<'input> Sync for Image<'input>
impl<'input> Unpin for Image<'input>
impl<'input> UnwindSafe for Image<'input>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more