pub struct Capabilities {
pub projects: Support,
pub documents: Support,
pub orphan_tasks: Support,
pub filter_by_label: Support,
pub filter_by_status: Support,
pub search_title: Support,
pub search_content: Support,
pub task_dependencies: DependencySupport,
pub project_dependencies: DependencySupport,
pub max_page_size: u32,
}Expand description
One source’s declared abilities.
Fields§
§projects: SupportWhether the source has projects at all.
documents: SupportWhether the source has documents at all.
The same shape as projects, and read the same way: it says what
the source holds, not which predicate it applies. It is therefore not one of
the predicates the second capability rule reaches — there is no wider result set to
return and nothing for the engine to narrow. A source declaring Unsupported is
never asked for a document at all; the engine reads this once at the handshake,
exactly as it reads TaskSource::writes, and a
document read across several sources reports such a source as holding none rather
than as having failed.
Defaulted to Support::Unsupported when a wire value omits it, so a plugin that
predates documents says nothing here and is read as the document-free source it is.
orphan_tasks: SupportWhether the source can select tasks belonging to no project.
filter_by_label: SupportWhether the source filters by label itself.
filter_by_status: SupportWhether the source filters by status itself.
search_title: SupportWhether the source searches titles itself.
search_content: SupportWhether the source searches bodies itself.
task_dependencies: DependencySupportHow far the source can walk task dependencies.
project_dependencies: DependencySupportHow far the source can walk project dependencies.
max_page_size: u32The largest page the source will serve. At least 1 — a source that serves no rows cannot be paged, and every implementation rejects zero where its config is read.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Capabilities
impl Debug for Capabilities
Source§impl<'de> Deserialize<'de> for Capabilities
impl<'de> Deserialize<'de> for Capabilities
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>,
Source§impl JsonSchema for Capabilities
impl JsonSchema for Capabilities
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more