Struct ccash_rs::user::CCashUser [−][src]
pub struct CCashUser { /* fields omitted */ }
Expand description
User struct that can be used for authentication purposes.
Implementations
Creates a new user where the username is checked against CCash’s
requirements. This is the recommended way to create a CCashUser
as
it is guaranteed to not cause CCash to reject the username. username
will automatically be made lowercase.
Creates a new CCashUser
with an unchecked username against CCash’s
requirements. This method is not recommended as it could cause
hard-to-diagnose or confusing errors from CCash for the user.
Returns an immutable reference to the CCashUser
’s username.
Returns an immutable reference to the CCashUser
’s password.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CCashUser
impl UnwindSafe for CCashUser
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more