pub struct ModelIdentity {
pub model_id: String,
pub source_repo: Option<String>,
pub source_revision: Option<String>,
pub source_file: Option<String>,
pub canonical_ref: Option<String>,
pub distribution_id: Option<String>,
pub selector: Option<String>,
}Fields§
§model_id: String§source_repo: Option<String>§source_revision: Option<String>§source_file: Option<String>§canonical_ref: Option<String>§distribution_id: Option<String>§selector: Option<String>Implementations§
Source§impl ModelIdentity
impl ModelIdentity
pub fn from_model_id(model_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ModelIdentity
impl Clone for ModelIdentity
Source§fn clone(&self) -> ModelIdentity
fn clone(&self) -> ModelIdentity
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 ModelIdentity
impl Debug for ModelIdentity
Source§impl<'de> Deserialize<'de> for ModelIdentity
impl<'de> Deserialize<'de> for ModelIdentity
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 From<&ResolvedModelArtifact> for ModelIdentity
impl From<&ResolvedModelArtifact> for ModelIdentity
Source§fn from(artifact: &ResolvedModelArtifact) -> Self
fn from(artifact: &ResolvedModelArtifact) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModelIdentity
impl PartialEq for ModelIdentity
Source§fn eq(&self, other: &ModelIdentity) -> bool
fn eq(&self, other: &ModelIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelIdentity
impl Serialize for ModelIdentity
impl Eq for ModelIdentity
impl StructuralPartialEq for ModelIdentity
Auto Trait Implementations§
impl Freeze for ModelIdentity
impl RefUnwindSafe for ModelIdentity
impl Send for ModelIdentity
impl Sync for ModelIdentity
impl Unpin for ModelIdentity
impl UnsafeUnpin for ModelIdentity
impl UnwindSafe for ModelIdentity
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