Enum prql_compiler::ast::rq::RelationColumn
source · Variants§
Single(Option<String>)
Description of a single column that may have a name. Unnamed columns cannot be referenced.
Wildcard
Means “and other unmentioned columns”. Does not mean “all columns”.
Implementations§
source§impl RelationColumn
impl RelationColumn
sourcepub fn as_single_mut(&mut self) -> Option<&mut Option<String>>
pub fn as_single_mut(&mut self) -> Option<&mut Option<String>>
Optionally returns mutable references to the inner fields if this is a RelationColumn::Single
, otherwise None
sourcepub fn as_single(&self) -> Option<&Option<String>>
pub fn as_single(&self) -> Option<&Option<String>>
Optionally returns references to the inner fields if this is a RelationColumn::Single
, otherwise None
sourcepub fn into_single(self) -> Result<Option<String>, Self>
pub fn into_single(self) -> Result<Option<String>, Self>
Returns the inner fields if this is a RelationColumn::Single
, otherwise returns back the enum in the Err
case of the result
sourcepub fn is_wildcard(&self) -> bool
pub fn is_wildcard(&self) -> bool
Returns true if this is a RelationColumn::Wildcard
, otherwise false
Trait Implementations§
source§impl Clone for RelationColumn
impl Clone for RelationColumn
source§fn clone(&self) -> RelationColumn
fn clone(&self) -> RelationColumn
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 RelationColumn
impl Debug for RelationColumn
source§impl<'de> Deserialize<'de> for RelationColumn
impl<'de> Deserialize<'de> for RelationColumn
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 Hash for RelationColumn
impl Hash for RelationColumn
source§impl PartialEq<RelationColumn> for RelationColumn
impl PartialEq<RelationColumn> for RelationColumn
source§fn eq(&self, other: &RelationColumn) -> bool
fn eq(&self, other: &RelationColumn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.