pub struct ProtectedTitle<'input> {
pub namespace: PageNamespace,
pub title: PageTitle,
pub user: UserId,
pub reason_id: CommentId,
pub timestamp: Timestamp,
pub expiry: Expiry,
pub create_perm: ProtectionLevel<'input>,
}
Expand description
Represents a row in the protected_titles
table.
Fields§
§namespace: PageNamespace
§title: PageTitle
§user: UserId
§reason_id: CommentId
§timestamp: Timestamp
§expiry: Expiry
§create_perm: ProtectionLevel<'input>
Trait Implementations§
Source§impl<'input> Clone for ProtectedTitle<'input>
impl<'input> Clone for ProtectedTitle<'input>
Source§fn clone(&self) -> ProtectedTitle<'input>
fn clone(&self) -> ProtectedTitle<'input>
Returns a duplicate 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<'input> Debug for ProtectedTitle<'input>
impl<'input> Debug for ProtectedTitle<'input>
Source§impl<'de: 'input, 'input> Deserialize<'de> for ProtectedTitle<'input>
impl<'de: 'input, 'input> Deserialize<'de> for ProtectedTitle<'input>
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<'input> FromSqlTuple<'input> for ProtectedTitle<'input>
impl<'input> FromSqlTuple<'input> for ProtectedTitle<'input>
fn from_sql_tuple(s: &'input [u8]) -> IResult<'input, Self>
Source§impl<'input> Hash for ProtectedTitle<'input>
impl<'input> Hash for ProtectedTitle<'input>
Source§impl<'input> Ord for ProtectedTitle<'input>
impl<'input> Ord for ProtectedTitle<'input>
Source§fn cmp(&self, other: &ProtectedTitle<'input>) -> Ordering
fn cmp(&self, other: &ProtectedTitle<'input>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'input> PartialEq for ProtectedTitle<'input>
impl<'input> PartialEq for ProtectedTitle<'input>
Source§impl<'input> PartialOrd for ProtectedTitle<'input>
impl<'input> PartialOrd for ProtectedTitle<'input>
Source§impl<'input> Serialize for ProtectedTitle<'input>
impl<'input> Serialize for ProtectedTitle<'input>
impl<'input> Eq for ProtectedTitle<'input>
impl<'input> StructuralPartialEq for ProtectedTitle<'input>
Auto Trait Implementations§
impl<'input> Freeze for ProtectedTitle<'input>
impl<'input> RefUnwindSafe for ProtectedTitle<'input>
impl<'input> Send for ProtectedTitle<'input>
impl<'input> Sync for ProtectedTitle<'input>
impl<'input> Unpin for ProtectedTitle<'input>
impl<'input> UnwindSafe for ProtectedTitle<'input>
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