Struct sqlparser::ast::CharacterLength
source · pub struct CharacterLength {
pub length: u64,
pub unit: Option<CharLengthUnits>,
}
Expand description
Information about character length, including length and possibly unit.
Fields§
§length: u64
Default (if VARYING) or maximum (if not VARYING) length
unit: Option<CharLengthUnits>
Optional unit. If not informed, the ANSI handles it as CHARACTERS implicitly
Trait Implementations§
source§impl Clone for CharacterLength
impl Clone for CharacterLength
source§fn clone(&self) -> CharacterLength
fn clone(&self) -> CharacterLength
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 CharacterLength
impl Debug for CharacterLength
source§impl<'de> Deserialize<'de> for CharacterLength
impl<'de> Deserialize<'de> for CharacterLength
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CharacterLength
impl Display for CharacterLength
source§impl Hash for CharacterLength
impl Hash for CharacterLength
source§impl Ord for CharacterLength
impl Ord for CharacterLength
source§fn cmp(&self, other: &CharacterLength) -> Ordering
fn cmp(&self, other: &CharacterLength) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CharacterLength> for CharacterLength
impl PartialEq<CharacterLength> for CharacterLength
source§fn eq(&self, other: &CharacterLength) -> bool
fn eq(&self, other: &CharacterLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CharacterLength> for CharacterLength
impl PartialOrd<CharacterLength> for CharacterLength
source§fn partial_cmp(&self, other: &CharacterLength) -> Option<Ordering>
fn partial_cmp(&self, other: &CharacterLength) -> Option<Ordering>
1.0.0 · source§fn 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 more