#[non_exhaustive]pub struct IntentDescriptor {
pub description: Option<String>,
pub intent: String,
pub params: Option<BTreeMap>,
pub semantics: Vec<String>,
}Expand description
One restore purpose a consumer advertises support for: the behaviours it opts into and the settings it accepts per replica.
JSON schema
{
"description": "One restore purpose a consumer advertises support for: the behaviours it\nopts into and the settings it accepts per replica.",
"type": "object",
"required": [
"intent"
],
"properties": {
"description": {
"description": "Human-readable description of the intent, if provided.",
"type": [
"string",
"null"
]
},
"intent": {
"description": "Name of the intent: an arbitrary identifier chosen by the consumer\n(e.g. `verify`); any name may be advertised.",
"type": "string"
},
"params": {
"description": "Configurable parameters this intent accepts per replica, keyed by\nparameter name.",
"$ref": "#/components/schemas/BTreeMap"
},
"semantics": {
"description": "Behaviours this intent opts into. Recognised values are `check` (a\nhealth report is expected for each replica), `once` (a given snapshot\nis only ever dispatched to a replica once, rather than repeatedly\nuntil overdue), and `url` (a replica's health report includes a link\nto it). Unrecognised values are stored but have no effect.",
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.description: Option<String>Human-readable description of the intent, if provided.
intent: StringName of the intent: an arbitrary identifier chosen by the consumer
(e.g. verify); any name may be advertised.
params: Option<BTreeMap>Configurable parameters this intent accepts per replica, keyed by parameter name.
semantics: Vec<String>Behaviours this intent opts into. Recognised values are check (a
health report is expected for each replica), once (a given snapshot
is only ever dispatched to a replica once, rather than repeatedly
until overdue), and url (a replica’s health report includes a link
to it). Unrecognised values are stored but have no effect.
Implementations§
Source§impl IntentDescriptor
impl IntentDescriptor
Sourcepub fn builder() -> IntentDescriptorBuilder
pub fn builder() -> IntentDescriptorBuilder
Create an instance of IntentDescriptor using the builder syntax
Trait Implementations§
Source§impl Clone for IntentDescriptor
impl Clone for IntentDescriptor
Source§fn clone(&self) -> IntentDescriptor
fn clone(&self) -> IntentDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more