pub struct PWHash(/* private fields */);
Expand description
The password of a character, hashed in the way, that the server expects
Implementations§
Source§impl PWHash
impl PWHash
Sourcepub fn new(password: &str) -> Self
pub fn new(password: &str) -> Self
Hashes the password the way the server expects it. You can use this to store user passwords safely (not in cleartext)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PWHash
impl<'de> Deserialize<'de> for PWHash
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 PWHash
impl RefUnwindSafe for PWHash
impl Send for PWHash
impl Sync for PWHash
impl Unpin for PWHash
impl UnwindSafe for PWHash
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