pub struct SelectItem {
pub item_type: ItemType,
pub name: String,
pub alias: Option<String>,
pub children: Option<Vec<SelectItem>>,
pub hint: Option<ItemHint>,
}Fields§
§item_type: ItemType§name: String§alias: Option<String>§children: Option<Vec<SelectItem>>§hint: Option<ItemHint>Implementations§
Source§impl SelectItem
impl SelectItem
pub fn field(name: impl Into<String>) -> Self
pub fn with_alias(self, alias: impl Into<String>) -> Self
pub fn with_children(self, children: Vec<SelectItem>) -> Self
pub fn with_hint(self, hint: ItemHint) -> Self
pub fn relation(name: impl Into<String>) -> Self
pub fn spread(name: impl Into<String>) -> Self
pub fn wildcard() -> Self
Trait Implementations§
Source§impl Clone for SelectItem
impl Clone for SelectItem
Source§fn clone(&self) -> SelectItem
fn clone(&self) -> SelectItem
Returns a duplicate 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 SelectItem
impl Debug for SelectItem
Source§impl<'de> Deserialize<'de> for SelectItem
impl<'de> Deserialize<'de> for SelectItem
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 PartialEq for SelectItem
impl PartialEq for SelectItem
Source§impl Serialize for SelectItem
impl Serialize for SelectItem
impl Eq for SelectItem
impl StructuralPartialEq for SelectItem
Auto Trait Implementations§
impl Freeze for SelectItem
impl RefUnwindSafe for SelectItem
impl Send for SelectItem
impl Sync for SelectItem
impl Unpin for SelectItem
impl UnwindSafe for SelectItem
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