pub struct PostTextAesEncryptRequest {
pub key: String,
pub text: String,
}Fields§
§key: StringKey must be 16, 24, or 32 bytes long to select AES-128, AES-192, or AES-256.
text: StringImplementations§
Source§impl PostTextAesEncryptRequest
impl PostTextAesEncryptRequest
pub fn new(key: String, text: String) -> PostTextAesEncryptRequest
Trait Implementations§
Source§impl Clone for PostTextAesEncryptRequest
impl Clone for PostTextAesEncryptRequest
Source§fn clone(&self) -> PostTextAesEncryptRequest
fn clone(&self) -> PostTextAesEncryptRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 PostTextAesEncryptRequest
impl Debug for PostTextAesEncryptRequest
Source§impl Default for PostTextAesEncryptRequest
impl Default for PostTextAesEncryptRequest
Source§fn default() -> PostTextAesEncryptRequest
fn default() -> PostTextAesEncryptRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostTextAesEncryptRequest
impl<'de> Deserialize<'de> for PostTextAesEncryptRequest
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
impl StructuralPartialEq for PostTextAesEncryptRequest
Auto Trait Implementations§
impl Freeze for PostTextAesEncryptRequest
impl RefUnwindSafe for PostTextAesEncryptRequest
impl Send for PostTextAesEncryptRequest
impl Sync for PostTextAesEncryptRequest
impl Unpin for PostTextAesEncryptRequest
impl UnwindSafe for PostTextAesEncryptRequest
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