Struct prql_compiler::ir::decl::Decl
source · pub struct Decl {
pub declared_at: Option<usize>,
pub kind: DeclKind,
pub order: usize,
pub annotations: Vec<Annotation>,
}
Expand description
A struct containing information about a single declaration.
Fields§
§declared_at: Option<usize>
§kind: DeclKind
§order: usize
Some declarations (like relation columns) have an order to them. 0 means that the order is irrelevant.
annotations: Vec<Annotation>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Decl
impl<'de> Deserialize<'de> for Decl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Decl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Decl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Decl
impl PartialEq for Decl
source§impl Serialize for Decl
impl Serialize for Decl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Decl
Auto Trait Implementations§
impl RefUnwindSafe for Decl
impl Send for Decl
impl Sync for Decl
impl Unpin for Decl
impl UnwindSafe for Decl
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