pub enum SourcePolicy {
AnySource,
AuthoritativeOnly,
RequireCitations,
NoRetrieval,
}Expand description
Which sources an answer must rest on (spec §19.1).
Variants§
AnySource
Any available source.
AuthoritativeOnly
Only authoritative sources (case state, approved knowledge).
RequireCitations
Sources must be cited.
NoRetrieval
No retrieval; answer from state and general knowledge only.
Trait Implementations§
Source§impl Clone for SourcePolicy
impl Clone for SourcePolicy
impl Copy for SourcePolicy
Source§impl Debug for SourcePolicy
impl Debug for SourcePolicy
Source§impl<'de> Deserialize<'de> for SourcePolicy
impl<'de> Deserialize<'de> for SourcePolicy
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 SourcePolicy
Source§impl Hash for SourcePolicy
impl Hash for SourcePolicy
Source§impl PartialEq for SourcePolicy
impl PartialEq for SourcePolicy
Source§impl Serialize for SourcePolicy
impl Serialize for SourcePolicy
impl StructuralPartialEq for SourcePolicy
Auto Trait Implementations§
impl Freeze for SourcePolicy
impl RefUnwindSafe for SourcePolicy
impl Send for SourcePolicy
impl Sync for SourcePolicy
impl Unpin for SourcePolicy
impl UnsafeUnpin for SourcePolicy
impl UnwindSafe for SourcePolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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.