pub struct PostTextAesDecryptRequest {
pub key: String,
pub text: String,
pub nonce: String,
}Fields§
§key: String密钥,长度必须为16、24或32字节,对应AES-128/192/256。
text: StringBase64编码的密文。
nonce: String16�ֽڵ�IV/Nonce����Ϊ16���ַ�
Implementations§
Trait Implementations§
Source§impl Clone for PostTextAesDecryptRequest
impl Clone for PostTextAesDecryptRequest
Source§fn clone(&self) -> PostTextAesDecryptRequest
fn clone(&self) -> PostTextAesDecryptRequest
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 PostTextAesDecryptRequest
impl Debug for PostTextAesDecryptRequest
Source§impl Default for PostTextAesDecryptRequest
impl Default for PostTextAesDecryptRequest
Source§fn default() -> PostTextAesDecryptRequest
fn default() -> PostTextAesDecryptRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostTextAesDecryptRequest
impl<'de> Deserialize<'de> for PostTextAesDecryptRequest
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 PostTextAesDecryptRequest
Auto Trait Implementations§
impl Freeze for PostTextAesDecryptRequest
impl RefUnwindSafe for PostTextAesDecryptRequest
impl Send for PostTextAesDecryptRequest
impl Sync for PostTextAesDecryptRequest
impl Unpin for PostTextAesDecryptRequest
impl UnwindSafe for PostTextAesDecryptRequest
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