pub struct IssueQualityInput {
pub title: String,
pub body: String,
pub labels: Vec<String>,
pub milestone: Option<String>,
pub comments: Vec<String>,
}Expand description
Minimal, reviewed Issue fields allowed in a provider request.
Fields§
§title: StringIssue title, possibly empty for quality assessment fixtures.
body: StringReviewed and redacted Issue body.
labels: Vec<String>Relevant labels only.
milestone: Option<String>Optional milestone title, never a URL or identifier.
comments: Vec<String>At most three selected, reviewed and redacted comments.
Implementations§
Source§impl IssueQualityInput
impl IssueQualityInput
Sourcepub fn validate(&self) -> Result<(), DecisionError>
pub fn validate(&self) -> Result<(), DecisionError>
Validate bounds and obvious credential/URL exposure before provider use.
§Errors
Returns a content-free error for unsafe or oversized input.
Sourcepub fn decision_request(&self) -> Result<DecisionRequest, DecisionError>
pub fn decision_request(&self) -> Result<DecisionRequest, DecisionError>
Fixed provider-neutral questions; Issue text is data, never instructions.
§Errors
Returns a content-free error for invalid input.
Trait Implementations§
Source§impl Clone for IssueQualityInput
impl Clone for IssueQualityInput
Source§impl Debug for IssueQualityInput
impl Debug for IssueQualityInput
Source§impl<'de> Deserialize<'de> for IssueQualityInput
impl<'de> Deserialize<'de> for IssueQualityInput
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
Auto Trait Implementations§
impl Forget for IssueQualityInput
impl Freeze for IssueQualityInput
impl Move for IssueQualityInput
impl RefUnwindSafe for IssueQualityInput
impl Send for IssueQualityInput
impl Sync for IssueQualityInput
impl Unpin for IssueQualityInput
impl UnsafeUnpin for IssueQualityInput
impl UnwindSafe for IssueQualityInput
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more