pub struct SourceModel {
pub sha256: String,
pub metadata_artifact_id: String,
pub repo: Option<String>,
pub revision: Option<String>,
pub primary_file: Option<String>,
pub canonical_ref: Option<String>,
pub distribution_id: Option<String>,
pub files: Vec<SourceFile>,
}Fields§
§sha256: StringDigest of the primary file in the immutable source distribution.
metadata_artifact_id: StringGenerated package artifact that carries the model metadata needed to construct the metadata-only graph.
repo: Option<String>§revision: Option<String>§primary_file: Option<String>§canonical_ref: Option<String>§distribution_id: Option<String>§files: Vec<SourceFile>Trait Implementations§
Source§impl Clone for SourceModel
impl Clone for SourceModel
Source§impl Debug for SourceModel
impl Debug for SourceModel
Source§impl<'de> Deserialize<'de> for SourceModel
impl<'de> Deserialize<'de> for SourceModel
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
impl Eq for SourceModel
Source§impl PartialEq for SourceModel
impl PartialEq for SourceModel
Source§impl Serialize for SourceModel
impl Serialize for SourceModel
impl StructuralPartialEq for SourceModel
Auto Trait Implementations§
impl Freeze for SourceModel
impl RefUnwindSafe for SourceModel
impl Send for SourceModel
impl Sync for SourceModel
impl Unpin for SourceModel
impl UnsafeUnpin for SourceModel
impl UnwindSafe for SourceModel
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