pub struct SecretBytes(/* private fields */);Expand description
Secure bytes that are automatically zeroed when dropped.
Use this for private keys, binary secrets, and other sensitive byte data.
§Example
use ccxt_core::credentials::SecretBytes;
let private_key = SecretBytes::new(vec![0x01, 0x02, 0x03, 0x04]);
let bytes = private_key.expose_secret();Implementations§
Trait Implementations§
Source§impl Clone for SecretBytes
impl Clone for SecretBytes
Source§fn clone(&self) -> SecretBytes
fn clone(&self) -> SecretBytes
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 SecretBytes
impl Debug for SecretBytes
Source§impl Drop for SecretBytes
impl Drop for SecretBytes
Source§impl PartialEq for SecretBytes
impl PartialEq for SecretBytes
Source§impl Zeroize for SecretBytes
impl Zeroize for SecretBytes
impl Eq for SecretBytes
impl StructuralPartialEq for SecretBytes
Auto Trait Implementations§
impl Freeze for SecretBytes
impl RefUnwindSafe for SecretBytes
impl Send for SecretBytes
impl Sync for SecretBytes
impl Unpin for SecretBytes
impl UnwindSafe for SecretBytes
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