pub struct NegativeExampleDto {
pub explanation: String,
pub rejection_reason: String,
pub sort_id: Uuid,
pub strategy: String,
pub term_id: Uuid,
}Expand description
A generated negative example with provenance.
Fields§
§explanation: StringHuman-readable explanation of why this is negative.
rejection_reason: StringThe rejection reason category.
sort_id: UuidThe sort this negative was generated against.
strategy: StringThe strategy used to generate this negative.
term_id: UuidThe term ID of the negative example.
Implementations§
Source§impl NegativeExampleDto
impl NegativeExampleDto
pub fn builder() -> NegativeExampleDto
Trait Implementations§
Source§impl Clone for NegativeExampleDto
impl Clone for NegativeExampleDto
Source§fn clone(&self) -> NegativeExampleDto
fn clone(&self) -> NegativeExampleDto
Returns a duplicate of the value. Read more
1.0.0 · 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 NegativeExampleDto
impl Debug for NegativeExampleDto
Source§impl<'de> Deserialize<'de> for NegativeExampleDto
impl<'de> Deserialize<'de> for NegativeExampleDto
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 From<NegativeExampleDto> for NegativeExampleDto
impl From<NegativeExampleDto> for NegativeExampleDto
Source§fn from(value: NegativeExampleDto) -> Self
fn from(value: NegativeExampleDto) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NegativeExampleDto
impl PartialEq for NegativeExampleDto
Source§impl Serialize for NegativeExampleDto
impl Serialize for NegativeExampleDto
Source§impl TryFrom<NegativeExampleDto> for NegativeExampleDto
impl TryFrom<NegativeExampleDto> for NegativeExampleDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NegativeExampleDto) -> Result<Self, ConversionError>
fn try_from(value: NegativeExampleDto) -> Result<Self, ConversionError>
Performs the conversion.
impl StructuralPartialEq for NegativeExampleDto
Auto Trait Implementations§
impl Freeze for NegativeExampleDto
impl RefUnwindSafe for NegativeExampleDto
impl Send for NegativeExampleDto
impl Sync for NegativeExampleDto
impl Unpin for NegativeExampleDto
impl UnsafeUnpin for NegativeExampleDto
impl UnwindSafe for NegativeExampleDto
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