pub struct LogicalModelRef(/* private fields */);Expand description
A user/selector reference to a model.
May be the "auto" sentinel, a bare model name, or an
aggregator-prefixed string. A LogicalModelRef carries no provider
authority by itself; see Self::namespace_hint.
Implementations§
Source§impl LogicalModelRef
impl LogicalModelRef
Sourcepub fn is_auto(&self) -> bool
pub fn is_auto(&self) -> bool
Whether this selector is the explicit auto router sentinel.
auto is an opt-in router sentinel, never a literal model id.
Sourcepub fn namespace_hint(&self) -> Option<NamespaceHint>
pub fn namespace_hint(&self) -> Option<NamespaceHint>
Parse the leading namespace prefix, if any.
Returns Some only for the curated aggregator/organization prefixes.
This is a hint about catalog namespace and does NOT identify a provider.
Trait Implementations§
Source§impl AsRef<str> for LogicalModelRef
impl AsRef<str> for LogicalModelRef
Source§impl Clone for LogicalModelRef
impl Clone for LogicalModelRef
Source§fn clone(&self) -> LogicalModelRef
fn clone(&self) -> LogicalModelRef
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 LogicalModelRef
impl Debug for LogicalModelRef
Source§impl<'de> Deserialize<'de> for LogicalModelRef
impl<'de> Deserialize<'de> for LogicalModelRef
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 Display for LogicalModelRef
impl Display for LogicalModelRef
impl Eq for LogicalModelRef
Source§impl From<&str> for LogicalModelRef
impl From<&str> for LogicalModelRef
Source§impl From<String> for LogicalModelRef
impl From<String> for LogicalModelRef
Source§impl Hash for LogicalModelRef
impl Hash for LogicalModelRef
Source§impl PartialEq for LogicalModelRef
impl PartialEq for LogicalModelRef
Source§impl Serialize for LogicalModelRef
impl Serialize for LogicalModelRef
impl StructuralPartialEq for LogicalModelRef
Auto Trait Implementations§
impl Freeze for LogicalModelRef
impl RefUnwindSafe for LogicalModelRef
impl Send for LogicalModelRef
impl Sync for LogicalModelRef
impl Unpin for LogicalModelRef
impl UnsafeUnpin for LogicalModelRef
impl UnwindSafe for LogicalModelRef
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.