pub struct SourceProbe {
pub schema: Option<String>,
pub name: String,
pub kind: SourceKind,
}Expand description
One database object a schema declares it depends on, parsed from a sql_source.
The identifier is kept verbatim (case-sensitive): the runtime resolves it
through quote_postgres_identifier, so a probe must too.
Fields§
§schema: Option<String>Explicit schema qualifier (events in events.v_log), or None for a
bare name resolved against the connection search_path.
name: StringThe relation or function name, verbatim (no case-folding).
kind: SourceKindWhether to resolve name as a relation or a function.
Implementations§
Source§impl SourceProbe
impl SourceProbe
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Render the probe as a (possibly schema-qualified) identifier — the form a
human-facing diagnostic shows (e.g. events.v_log, app.create_order).
Trait Implementations§
Source§impl Clone for SourceProbe
impl Clone for SourceProbe
Source§fn clone(&self) -> SourceProbe
fn clone(&self) -> SourceProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourceProbe
impl Debug for SourceProbe
impl Eq for SourceProbe
Source§impl PartialEq for SourceProbe
impl PartialEq for SourceProbe
impl StructuralPartialEq for SourceProbe
Auto Trait Implementations§
impl Freeze for SourceProbe
impl RefUnwindSafe for SourceProbe
impl Send for SourceProbe
impl Sync for SourceProbe
impl Unpin for SourceProbe
impl UnsafeUnpin for SourceProbe
impl UnwindSafe for SourceProbe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.