pub struct NamespacePolicy {
pub enabled: bool,
pub retention_days: Option<u32>,
pub promotion: Promotion,
pub min_confidence: f64,
pub require_provenance: bool,
}Expand description
Retention and promotion policy for one namespace.
Fields§
§enabled: bool§retention_days: Option<u32>Drop records older than this. None keeps them for the life of the
store, which is the right answer for episodic history and the wrong one
for anything the loop acts on.
promotion: Promotion§min_confidence: f64A record below this confidence is never returned by retrieval.
require_provenance: boolRefuse to write a record that cannot say where it came from.
Trait Implementations§
Source§impl Clone for NamespacePolicy
impl Clone for NamespacePolicy
Source§impl Debug for NamespacePolicy
impl Debug for NamespacePolicy
Source§impl Default for NamespacePolicy
impl Default for NamespacePolicy
Source§impl<'de> Deserialize<'de> for NamespacePolicy
impl<'de> Deserialize<'de> for NamespacePolicy
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 JsonSchema for NamespacePolicy
impl JsonSchema for NamespacePolicy
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for NamespacePolicy
impl RefUnwindSafe for NamespacePolicy
impl Send for NamespacePolicy
impl Sync for NamespacePolicy
impl Unpin for NamespacePolicy
impl UnsafeUnpin for NamespacePolicy
impl UnwindSafe for NamespacePolicy
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