pub struct CreateUserStatement {
pub name: String,
pub password: String,
pub role: String,
}Fields§
§name: String§password: String§role: StringOne of admin / readwrite / readonly. Stored verbatim from
the parser; the engine validates against Role::parse so a
typo lands as a runtime error with a clear message rather than
a parse failure.
Trait Implementations§
Source§impl Clone for CreateUserStatement
impl Clone for CreateUserStatement
Source§fn clone(&self) -> CreateUserStatement
fn clone(&self) -> CreateUserStatement
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 CreateUserStatement
impl Debug for CreateUserStatement
impl Eq for CreateUserStatement
Source§impl PartialEq for CreateUserStatement
impl PartialEq for CreateUserStatement
Source§fn eq(&self, other: &CreateUserStatement) -> bool
fn eq(&self, other: &CreateUserStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateUserStatement
Auto Trait Implementations§
impl Freeze for CreateUserStatement
impl RefUnwindSafe for CreateUserStatement
impl Send for CreateUserStatement
impl Sync for CreateUserStatement
impl Unpin for CreateUserStatement
impl UnsafeUnpin for CreateUserStatement
impl UnwindSafe for CreateUserStatement
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