Struct parse_mediawiki_sql::schemas::Site
source · [−]pub struct Site<'input> {
pub id: u32,
pub global_key: &'input str,
pub type: &'input str,
pub group: &'input str,
pub source: &'input str,
pub language: &'input str,
pub protocol: &'input str,
pub domain: &'input [u8],
pub data: String,
pub forward: i8,
pub config: String,
}
Expand description
Represents a row in the sites
table.
Fields
id: u32
global_key: &'input str
type: &'input str
group: &'input str
source: &'input str
language: &'input str
protocol: &'input str
domain: &'input [u8]
data: String
forward: i8
config: String
Trait Implementations
sourceimpl<'de: 'input, 'input> Deserialize<'de> for Site<'input>
impl<'de: 'input, 'input> Deserialize<'de> for Site<'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 Site<'input>
impl<'input> FromSqlTuple<'input> for Site<'input>
fn from_sql_tuple(s: &'input [u8]) -> IResult<'input, Self>
sourceimpl<'input> Ord for Site<'input>
impl<'input> Ord for Site<'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<Site<'input>> for Site<'input>
impl<'input> PartialEq<Site<'input>> for Site<'input>
sourceimpl<'input> PartialOrd<Site<'input>> for Site<'input>
impl<'input> PartialOrd<Site<'input>> for Site<'input>
sourcefn partial_cmp(&self, other: &Site<'input>) -> Option<Ordering>
fn partial_cmp(&self, other: &Site<'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 Site<'input>
impl<'input> StructuralEq for Site<'input>
impl<'input> StructuralPartialEq for Site<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for Site<'input>
impl<'input> Send for Site<'input>
impl<'input> Sync for Site<'input>
impl<'input> Unpin for Site<'input>
impl<'input> UnwindSafe for Site<'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