pub struct Candidate {
pub origin: CandidateOrigin,
pub path: Option<String>,
pub number: Option<u64>,
pub digest: String,
pub head_sha: Option<String>,
pub applied: bool,
pub refused: Option<CandidateRefusal>,
}Expand description
Someone else’s fix, judged as the attempt.
Fields§
§origin: CandidateOriginA patch or a pull request.
path: Option<String>The patch file, as given.
number: Option<u64>The pull request’s number.
digest: Stringsha256:<hex> of the diff.
head_sha: Option<String>The pull request’s head commit.
applied: boolIt was applied as the attempt.
refused: Option<CandidateRefusal>Why it was not.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Candidate
impl<'de> Deserialize<'de> for Candidate
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 Candidate
Source§impl JsonSchema for Candidate
impl JsonSchema for Candidate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Candidate
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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