pub struct SourceIdentity { /* private fields */ }Expand description
Immutable source and input identities for one qualification run.
Implementations§
Source§impl SourceIdentity
impl SourceIdentity
Sourcepub fn new(
source_commit: impl Into<String>,
source_tree: impl Into<String>,
cargo_lock_sha256: impl Into<String>,
dataset_sha256: impl Into<String>,
configuration_sha256: impl Into<String>,
) -> Result<Self, EnvironmentError>
pub fn new( source_commit: impl Into<String>, source_tree: impl Into<String>, cargo_lock_sha256: impl Into<String>, dataset_sha256: impl Into<String>, configuration_sha256: impl Into<String>, ) -> Result<Self, EnvironmentError>
Creates and validates the source identity.
Sourcepub fn source_commit(&self) -> &str
pub fn source_commit(&self) -> &str
Returns the exact Git commit.
Sourcepub fn source_tree(&self) -> &str
pub fn source_tree(&self) -> &str
Returns the exact Git tree.
Trait Implementations§
Source§impl Clone for SourceIdentity
impl Clone for SourceIdentity
Source§impl Debug for SourceIdentity
impl Debug for SourceIdentity
Source§impl<'de> Deserialize<'de> for SourceIdentity
impl<'de> Deserialize<'de> for SourceIdentity
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 SourceIdentity
Source§impl PartialEq for SourceIdentity
impl PartialEq for SourceIdentity
Source§impl Serialize for SourceIdentity
impl Serialize for SourceIdentity
impl StructuralPartialEq for SourceIdentity
Auto Trait Implementations§
impl Forget for SourceIdentity
impl Freeze for SourceIdentity
impl Move for SourceIdentity
impl RefUnwindSafe for SourceIdentity
impl Send for SourceIdentity
impl Sync for SourceIdentity
impl Unpin for SourceIdentity
impl UnsafeUnpin for SourceIdentity
impl UnwindSafe for SourceIdentity
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