Struct cassandra_protocol::frame::message_result::ColTypeOption
source · [−]pub struct ColTypeOption {
pub id: ColType,
pub value: Option<ColTypeOptionValue>,
}
Expand description
Cassandra option that represent column type.
Fields
id: ColType
Id refers to ColType
.
value: Option<ColTypeOptionValue>
Values depending on column type.
Trait Implementations
sourceimpl Clone for ColTypeOption
impl Clone for ColTypeOption
sourcefn clone(&self) -> ColTypeOption
fn clone(&self) -> ColTypeOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ColTypeOption
impl Debug for ColTypeOption
sourceimpl FromCursor for ColTypeOption
impl FromCursor for ColTypeOption
sourcefn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> Result<ColTypeOption>
fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> Result<ColTypeOption>
Tries to parse Self from a cursor of bytes.
sourceimpl Hash for ColTypeOption
impl Hash for ColTypeOption
sourceimpl Ord for ColTypeOption
impl Ord for ColTypeOption
sourcefn cmp(&self, other: &ColTypeOption) -> Ordering
fn cmp(&self, other: &ColTypeOption) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ColTypeOption> for ColTypeOption
impl PartialEq<ColTypeOption> for ColTypeOption
sourcefn eq(&self, other: &ColTypeOption) -> bool
fn eq(&self, other: &ColTypeOption) -> bool
sourceimpl PartialOrd<ColTypeOption> for ColTypeOption
impl PartialOrd<ColTypeOption> for ColTypeOption
sourcefn partial_cmp(&self, other: &ColTypeOption) -> Option<Ordering>
fn partial_cmp(&self, other: &ColTypeOption) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for ColTypeOption
impl Serialize for ColTypeOption
impl Eq for ColTypeOption
impl StructuralEq for ColTypeOption
impl StructuralPartialEq for ColTypeOption
Auto Trait Implementations
impl RefUnwindSafe for ColTypeOption
impl Send for ColTypeOption
impl Sync for ColTypeOption
impl Unpin for ColTypeOption
impl UnwindSafe for ColTypeOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more