pub struct ExperimentalEncryptProps {
pub cipher: String,
pub public_key: Vec<u8>,
pub cleartext: Vec<u8>,
pub padding: Option<u8>,
}Fields§
§cipher: StringCipher to use for encryption.
public_key: Vec<u8>Public key to derive a shared key to encrypt the data using.
cleartext: Vec<u8>Cleartext to encrypt.
padding: Option<u8>Multiple of padding bytes to use for encryption, defaulting to 0.
Valid values 0 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048
Implementations§
Source§impl ExperimentalEncryptProps
impl ExperimentalEncryptProps
Sourcepub fn builder() -> ExperimentalEncryptPropsBuilder
pub fn builder() -> ExperimentalEncryptPropsBuilder
Create a builder for building ExperimentalEncryptProps.
On the builder, call .cipher(...), .public_key(...), .cleartext(...), .padding(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ExperimentalEncryptProps.
Trait Implementations§
Source§impl Clone for ExperimentalEncryptProps
impl Clone for ExperimentalEncryptProps
Source§fn clone(&self) -> ExperimentalEncryptProps
fn clone(&self) -> ExperimentalEncryptProps
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 ExperimentalEncryptProps
impl Debug for ExperimentalEncryptProps
Source§impl<'de> Deserialize<'de> for ExperimentalEncryptProps
impl<'de> Deserialize<'de> for ExperimentalEncryptProps
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExperimentalEncryptProps, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExperimentalEncryptProps, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExperimentalEncryptProps
impl PartialEq for ExperimentalEncryptProps
Source§impl Serialize for ExperimentalEncryptProps
impl Serialize for ExperimentalEncryptProps
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ExperimentalEncryptProps
impl StructuralPartialEq for ExperimentalEncryptProps
Auto Trait Implementations§
impl Freeze for ExperimentalEncryptProps
impl RefUnwindSafe for ExperimentalEncryptProps
impl Send for ExperimentalEncryptProps
impl Sync for ExperimentalEncryptProps
impl Unpin for ExperimentalEncryptProps
impl UnwindSafe for ExperimentalEncryptProps
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