pub struct AnswerConstraints {
pub must_include: Option<Vec<String>>,
pub must_not_include: Option<Vec<String>>,
pub freshness_window_days: Option<u32>,
}Expand description
Soft constraints for answer engines synthesizing about this entity.
Fields§
§must_include: Option<Vec<String>>Claim IDs that SHOULD appear in any answer.
must_not_include: Option<Vec<String>>Claim IDs or topic: tags that SHOULD NOT appear.
freshness_window_days: Option<u32>Maximum acceptable data age in days before re-fetching.
Trait Implementations§
Source§impl Clone for AnswerConstraints
impl Clone for AnswerConstraints
Source§fn clone(&self) -> AnswerConstraints
fn clone(&self) -> AnswerConstraints
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 AnswerConstraints
impl Debug for AnswerConstraints
Source§impl Default for AnswerConstraints
impl Default for AnswerConstraints
Source§fn default() -> AnswerConstraints
fn default() -> AnswerConstraints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnswerConstraints
impl<'de> Deserialize<'de> for AnswerConstraints
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 Freeze for AnswerConstraints
impl RefUnwindSafe for AnswerConstraints
impl Send for AnswerConstraints
impl Sync for AnswerConstraints
impl Unpin for AnswerConstraints
impl UnsafeUnpin for AnswerConstraints
impl UnwindSafe for AnswerConstraints
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