pub struct ModelRef { /* private fields */ }Expand description
Complete canonical identity of one model advertised by one provider.
Implementations§
Source§impl ModelRef
impl ModelRef
Sourcepub const fn new(provider_id: ProviderId, model_id: ModelId) -> ModelRef
pub const fn new(provider_id: ProviderId, model_id: ModelId) -> ModelRef
Creates a provider-qualified model identity.
Sourcepub const fn provider_id(&self) -> &ProviderId
pub const fn provider_id(&self) -> &ProviderId
Returns the provider selector.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelRef
impl<'de> Deserialize<'de> for ModelRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelRef
Source§impl Ord for ModelRef
impl Ord for ModelRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ModelRef
impl PartialOrd for ModelRef
Source§impl Serialize for ModelRef
impl Serialize for ModelRef
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 ModelRef
Auto Trait Implementations§
impl Freeze for ModelRef
impl RefUnwindSafe for ModelRef
impl Send for ModelRef
impl Sync for ModelRef
impl Unpin for ModelRef
impl UnsafeUnpin for ModelRef
impl UnwindSafe for ModelRef
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