Struct PlaintextTarget
pub struct PlaintextTarget {
pub plaintext: Plaintext,
pub config: ColumnConfig,
pub operator: Option<Operator>,
pub context: Vec<Context>,
}Expand description
Convenience type that represents a Param which will be mapped using config.
config will always be present but operator may be None in this case.
Fields§
§plaintext: Plaintext§config: ColumnConfig§operator: Option<Operator>§context: Vec<Context>Implementations§
§impl PlaintextTarget
impl PlaintextTarget
pub fn new(plaintext: impl Into<Plaintext>, config: ColumnConfig) -> Self
pub fn new_with_operator( plaintext: impl Into<Plaintext>, config: ColumnConfig, operator: Option<Operator>, ) -> Self
pub fn payload(&self) -> BytesWithDescriptor
pub fn payload(&self) -> BytesWithDescriptor
Convert the Plaintext into a byte array and attach the descriptor to it.
pub fn config(&self) -> &ColumnConfig
pub fn with_context(self, context: Context) -> Self
Trait Implementations§
§impl Debug for PlaintextTarget
impl Debug for PlaintextTarget
§impl<'k> Encryptable<'k> for PlaintextTarget
Encryptable implementation for PlaintextTarget
impl<'k> Encryptable<'k> for PlaintextTarget
Encryptable implementation for PlaintextTarget
type Output = Plaintext
fn build_encryptable( self, index_key: &'k IndexKey, keyset_id: Uuid, ) -> Result<StorageBuilder<'k, Self::Output>, EncryptionError>
§impl From<&PlaintextTarget> for BytesWithDescriptor
impl From<&PlaintextTarget> for BytesWithDescriptor
§fn from(value: &PlaintextTarget) -> Self
fn from(value: &PlaintextTarget) -> Self
Converts to this type from the input type.
§impl From<PlaintextTarget> for BytesWithDescriptor
impl From<PlaintextTarget> for BytesWithDescriptor
§fn from(value: PlaintextTarget) -> Self
fn from(value: PlaintextTarget) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlaintextTarget
impl RefUnwindSafe for PlaintextTarget
impl Send for PlaintextTarget
impl Sync for PlaintextTarget
impl Unpin for PlaintextTarget
impl UnsafeUnpin for PlaintextTarget
impl UnwindSafe for PlaintextTarget
Blanket Implementations§
impl<T> AuthStrategyBounds for T
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more