pub struct V1Client { /* private fields */ }Expand description
This object implements the version 1 of snailcrypt strings. The version 1 allows encrypting an arbitary string until a specified date.
Implementations§
Trait Implementations§
Source§impl Client for V1Client
impl Client for V1Client
Source§fn decrypt(
&self,
ciphertext: &str,
) -> Result<ClientDecryptResultSuccess, ClientDecryptResultFailure>
fn decrypt( &self, ciphertext: &str, ) -> Result<ClientDecryptResultSuccess, ClientDecryptResultFailure>
Decrypt a cipher text.
Source§fn lockdate_from_snailcrypt_cipher(
&self,
ciphertext: &str,
) -> Result<DateTime<FixedOffset>, String>
fn lockdate_from_snailcrypt_cipher( &self, ciphertext: &str, ) -> Result<DateTime<FixedOffset>, String>
Extract the lockdate from a cipher text.
Source§fn get_datetime_format(&self) -> &str
fn get_datetime_format(&self) -> &str
Get the supported date time format of this client.
Source§fn get_client_version(&self) -> ClientVersion
fn get_client_version(&self) -> ClientVersion
Get the client version of this client.
Auto Trait Implementations§
impl Freeze for V1Client
impl !RefUnwindSafe for V1Client
impl !Send for V1Client
impl !Sync for V1Client
impl Unpin for V1Client
impl UnsafeUnpin for V1Client
impl !UnwindSafe for V1Client
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