pub struct Entry {
pub label: &'static str,
pub kind: Kind,
pub doc: &'static str,
pub signature: Option<&'static str>,
pub example: &'static str,
pub url: &'static str,
}Expand description
One entry in the knowledge base.
signature is set only for functions; for keywords and types it stays
None because they don’t have a meaningful arity.
Fields§
§label: &'static strDisplay label in canonical case ("SELECT", "now", "UUID").
kind: KindWhat this entry represents. Drives the LSP completion item kind.
doc: &'static strOne-line semantic description.
signature: Option<&'static str>Optional formal signature, only for functions.
example: &'static strShort SQL snippet showing canonical usage.
url: &'static strLink to the canonical Postgres documentation page.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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