pub(crate) enum KeyExpressionInternal {
V1(KeyExpressionInternalV1),
}
Expand description
Internal representation of KeyExpression
.
If we need to introduce a new version of key_expression.proto
,
we can handle it here.
We currently do not directly seralize KeyExpressionInternal
,
so we do not have <Bytes as KeyExpressionInternal>::try_from
and
<KeyExpressionInternal as Bytes>::try_from
impls.
Even though there is From
trait implementation to convert
pb::*
types to KeyExpression
, they are not meant to be
directly used. All protobuf access must be proxied using this
type.
Variants§
Trait Implementations§
source§impl Clone for KeyExpressionInternal
impl Clone for KeyExpressionInternal
source§fn clone(&self) -> KeyExpressionInternal
fn clone(&self) -> KeyExpressionInternal
Returns a copy 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 KeyExpressionInternal
impl Debug for KeyExpressionInternal
source§impl From<KeyExpression> for KeyExpressionInternal
impl From<KeyExpression> for KeyExpressionInternal
source§fn from(key_expression: KeyExpression) -> KeyExpressionInternal
fn from(key_expression: KeyExpression) -> KeyExpressionInternal
Converts to this type from the input type.
source§impl From<KeyExpressionInternal> for KeyExpression
impl From<KeyExpressionInternal> for KeyExpression
source§fn from(key_expression_internal: KeyExpressionInternal) -> KeyExpression
fn from(key_expression_internal: KeyExpressionInternal) -> KeyExpression
Converts to this type from the input type.
source§impl PartialEq<KeyExpressionInternal> for KeyExpressionInternal
impl PartialEq<KeyExpressionInternal> for KeyExpressionInternal
source§fn eq(&self, other: &KeyExpressionInternal) -> bool
fn eq(&self, other: &KeyExpressionInternal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeyExpressionInternal
Auto Trait Implementations§
impl RefUnwindSafe for KeyExpressionInternal
impl Send for KeyExpressionInternal
impl Sync for KeyExpressionInternal
impl Unpin for KeyExpressionInternal
impl UnwindSafe for KeyExpressionInternal
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