Struct parse_mediawiki_sql::schemas::CategoryLink
source · [−]pub struct CategoryLink {
pub from: PageId,
pub to: PageTitle,
pub sortkey: Vec<u8>,
pub timestamp: Timestamp,
pub sortkey_prefix: Vec<u8>,
pub collation: String,
pub type: PageType,
}
Expand description
Represents a row in the categorylinks
table.
Fields
from: PageId
to: PageTitle
sortkey: Vec<u8>
Can be truncated in the middle of a UTF-8 sequence,
so cannot be represented as a String
.
timestamp: Timestamp
sortkey_prefix: Vec<u8>
Values added after this change, should be valid UTF-8, but older values may be invalid if they have been truncated in the middle of a multi-byte sequence.
collation: String
type: PageType
Trait Implementations
sourceimpl Clone for CategoryLink
impl Clone for CategoryLink
sourcefn clone(&self) -> CategoryLink
fn clone(&self) -> CategoryLink
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CategoryLink
impl Debug for CategoryLink
sourceimpl<'de> Deserialize<'de> for CategoryLink
impl<'de> Deserialize<'de> for CategoryLink
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 CategoryLink
impl<'input> FromSqlTuple<'input> for CategoryLink
fn from_sql_tuple(s: &'input [u8]) -> IResult<'input, Self>
sourceimpl Hash for CategoryLink
impl Hash for CategoryLink
sourceimpl Ord for CategoryLink
impl Ord for CategoryLink
sourcefn cmp(&self, other: &CategoryLink) -> Ordering
fn cmp(&self, other: &CategoryLink) -> Ordering
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 PartialEq<CategoryLink> for CategoryLink
impl PartialEq<CategoryLink> for CategoryLink
sourcefn eq(&self, other: &CategoryLink) -> bool
fn eq(&self, other: &CategoryLink) -> bool
sourceimpl PartialOrd<CategoryLink> for CategoryLink
impl PartialOrd<CategoryLink> for CategoryLink
sourcefn partial_cmp(&self, other: &CategoryLink) -> Option<Ordering>
fn partial_cmp(&self, other: &CategoryLink) -> 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 moresourceimpl Serialize for CategoryLink
impl Serialize for CategoryLink
impl Eq for CategoryLink
impl StructuralEq for CategoryLink
impl StructuralPartialEq for CategoryLink
Auto Trait Implementations
impl RefUnwindSafe for CategoryLink
impl Send for CategoryLink
impl Sync for CategoryLink
impl Unpin for CategoryLink
impl UnwindSafe for CategoryLink
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