pub struct ReviewCandidate {
pub registry_host: String,
pub package_name: String,
pub package_version: String,
pub file_path: String,
pub file_paths: Vec<String>,
pub package_hash: String,
}Expand description
Candidate package files that a client can review.
Fields§
§registry_host: StringRegistry host that identifies the package ecosystem.
package_name: StringPackage name to review.
package_version: StringPackage version to review.
file_path: StringPrimary file path for single-file targets.
file_paths: Vec<String>Full file list for bundled targets.
package_hash: StringPackage content hash for the selected release archive.
Implementations§
Source§impl ReviewCandidate
impl ReviewCandidate
Sourcepub fn target_file_paths(&self) -> Vec<String>
pub fn target_file_paths(&self) -> Vec<String>
Return the files included in this assignment.
Trait Implementations§
Source§impl Clone for ReviewCandidate
impl Clone for ReviewCandidate
Source§fn clone(&self) -> ReviewCandidate
fn clone(&self) -> ReviewCandidate
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 ReviewCandidate
impl Debug for ReviewCandidate
Source§impl<'de> Deserialize<'de> for ReviewCandidate
impl<'de> Deserialize<'de> for ReviewCandidate
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 Hash for ReviewCandidate
impl Hash for ReviewCandidate
Source§impl PartialEq for ReviewCandidate
impl PartialEq for ReviewCandidate
Source§fn eq(&self, other: &ReviewCandidate) -> bool
fn eq(&self, other: &ReviewCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReviewCandidate
impl Serialize for ReviewCandidate
impl Eq for ReviewCandidate
impl StructuralPartialEq for ReviewCandidate
Auto Trait Implementations§
impl Freeze for ReviewCandidate
impl RefUnwindSafe for ReviewCandidate
impl Send for ReviewCandidate
impl Sync for ReviewCandidate
impl Unpin for ReviewCandidate
impl UnsafeUnpin for ReviewCandidate
impl UnwindSafe for ReviewCandidate
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,
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.