pub enum SecurePlainData {
SecurePlainPhone(SecurePlainPhone),
SecurePlainEmail(SecurePlainEmail),
}Expand description
Variants§
SecurePlainPhone(SecurePlainPhone)
SecurePlainEmail(SecurePlainEmail)
Trait Implementations§
Source§impl Clone for SecurePlainData
impl Clone for SecurePlainData
Source§fn clone(&self) -> SecurePlainData
fn clone(&self) -> SecurePlainData
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 SecurePlainData
impl Debug for SecurePlainData
Source§impl Deserializable for SecurePlainData
impl Deserializable for SecurePlainData
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<SecurePlainEmail> for SecurePlainData
impl From<SecurePlainEmail> for SecurePlainData
Source§fn from(x: SecurePlainEmail) -> Self
fn from(x: SecurePlainEmail) -> Self
Converts to this type from the input type.
Source§impl From<SecurePlainPhone> for SecurePlainData
impl From<SecurePlainPhone> for SecurePlainData
Source§fn from(x: SecurePlainPhone) -> Self
fn from(x: SecurePlainPhone) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecurePlainData
impl PartialEq for SecurePlainData
Source§impl Serializable for SecurePlainData
impl Serializable for SecurePlainData
Source§impl TryFrom<SecurePlainData> for SecurePlainEmail
impl TryFrom<SecurePlainData> for SecurePlainEmail
Source§type Error = SecurePlainData
type Error = SecurePlainData
The type returned in the event of a conversion error.
Source§impl TryFrom<SecurePlainData> for SecurePlainPhone
impl TryFrom<SecurePlainData> for SecurePlainPhone
Source§type Error = SecurePlainData
type Error = SecurePlainData
The type returned in the event of a conversion error.
impl StructuralPartialEq for SecurePlainData
Auto Trait Implementations§
impl Freeze for SecurePlainData
impl RefUnwindSafe for SecurePlainData
impl Send for SecurePlainData
impl Sync for SecurePlainData
impl Unpin for SecurePlainData
impl UnsafeUnpin for SecurePlainData
impl UnwindSafe for SecurePlainData
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