pub struct IsAdminRow {
pub is_admin: i32,
}Expand description
Row type for single-pubkey admin checks.
Used with WHITELIST_IS_ADMIN_SQL and MEMBERS_IS_ADMIN_SQL.
The is_admin column is INTEGER in D1 (SQLite); 1 = admin, 0 = not.
Fields§
§is_admin: i32Trait Implementations§
Source§impl Clone for IsAdminRow
impl Clone for IsAdminRow
Source§fn clone(&self) -> IsAdminRow
fn clone(&self) -> IsAdminRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IsAdminRow
impl Debug for IsAdminRow
Source§impl<'de> Deserialize<'de> for IsAdminRow
impl<'de> Deserialize<'de> for IsAdminRow
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
Auto Trait Implementations§
impl Freeze for IsAdminRow
impl RefUnwindSafe for IsAdminRow
impl Send for IsAdminRow
impl Sync for IsAdminRow
impl Unpin for IsAdminRow
impl UnsafeUnpin for IsAdminRow
impl UnwindSafe for IsAdminRow
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