pub struct TaxonomyCapability {
pub tags: CapabilitySupport,
pub categories: CapabilitySupport,
pub internal_links: CapabilitySupport,
pub draft: DraftSupport,
}Expand description
Taxonomy-related capabilities for content classification and lifecycle. Grouped into a sub-struct for better organization within AdapterCapability.
Fields§
§categories: CapabilitySupport§internal_links: CapabilitySupport§draft: DraftSupportImplementations§
Source§impl TaxonomyCapability
impl TaxonomyCapability
Sourcepub const fn new(
tags: CapabilitySupport,
categories: CapabilitySupport,
internal_links: CapabilitySupport,
draft: DraftSupport,
) -> Self
pub const fn new( tags: CapabilitySupport, categories: CapabilitySupport, internal_links: CapabilitySupport, draft: DraftSupport, ) -> Self
Create a new taxonomy capability with all fields specified.
Sourcepub const fn full() -> Self
pub const fn full() -> Self
Create a taxonomy capability where all features are fully supported.
Sourcepub const fn minimal() -> Self
pub const fn minimal() -> Self
Create a taxonomy capability with minimal support (no tags/categories/draft).
pub fn categories_gap_behavior(&self) -> Option<CapabilityGapBehavior>
pub fn internal_links_gap_behavior(&self) -> Option<CapabilityGapBehavior>
pub fn draft_support(&self) -> DraftSupport
Trait Implementations§
Source§impl Clone for TaxonomyCapability
impl Clone for TaxonomyCapability
Source§fn clone(&self) -> TaxonomyCapability
fn clone(&self) -> TaxonomyCapability
Returns a duplicate of the value. Read more
1.0.0 · 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 TaxonomyCapability
impl Debug for TaxonomyCapability
impl Copy for TaxonomyCapability
Auto Trait Implementations§
impl Freeze for TaxonomyCapability
impl RefUnwindSafe for TaxonomyCapability
impl Send for TaxonomyCapability
impl Sync for TaxonomyCapability
impl Unpin for TaxonomyCapability
impl UnsafeUnpin for TaxonomyCapability
impl UnwindSafe for TaxonomyCapability
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