pub enum ResourceKind {
Index,
Indexer,
DataSource,
Skillset,
SynonymMap,
Alias,
KnowledgeBase,
KnowledgeSource,
Agent,
}Expand description
Enumeration of all supported resource types across service domains
Variants§
Implementations§
Source§impl ResourceKind
impl ResourceKind
Sourcepub fn domain(&self) -> ServiceDomain
pub fn domain(&self) -> ServiceDomain
Returns the service domain this resource belongs to
Sourcepub fn directory_name(&self) -> &'static str
pub fn directory_name(&self) -> &'static str
Returns the directory path for local storage (relative to service root).
Search resources are organized under category prefixes:
search-management/for core search resourcesagentic-retrieval/for knowledge bases and knowledge sources
Sourcepub fn is_preview(&self) -> bool
pub fn is_preview(&self) -> bool
Returns true if this resource type uses the preview API
Sourcepub fn cli_flag_name(&self) -> &'static str
pub fn cli_flag_name(&self) -> &'static str
Returns the singular CLI flag name for this resource type.
Used in hint messages like rigg delete --index my-index --target local.
Sourcepub fn cli_flag_name_plural(&self) -> &'static str
pub fn cli_flag_name_plural(&self) -> &'static str
Returns the plural CLI flag name for this resource type.
Used in hint messages like rigg pull --indexes.
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Returns the display name for this resource type
Sourcepub fn all() -> &'static [ResourceKind]
pub fn all() -> &'static [ResourceKind]
Returns all resource kinds across all domains
Sourcepub fn stable() -> &'static [ResourceKind]
pub fn stable() -> &'static [ResourceKind]
Returns non-preview Search resource kinds (stable search resources only)
Sourcepub fn search_kinds() -> Vec<ResourceKind>
pub fn search_kinds() -> Vec<ResourceKind>
Returns all Search resource kinds
Sourcepub fn foundry_kinds() -> Vec<ResourceKind>
pub fn foundry_kinds() -> Vec<ResourceKind>
Returns all Foundry resource kinds
Trait Implementations§
Source§impl Clone for ResourceKind
impl Clone for ResourceKind
Source§fn clone(&self) -> ResourceKind
fn clone(&self) -> ResourceKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceKind
impl Debug for ResourceKind
Source§impl<'de> Deserialize<'de> for ResourceKind
impl<'de> Deserialize<'de> for ResourceKind
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 Display for ResourceKind
impl Display for ResourceKind
Source§impl Hash for ResourceKind
impl Hash for ResourceKind
Source§impl PartialEq for ResourceKind
impl PartialEq for ResourceKind
Source§impl Serialize for ResourceKind
impl Serialize for ResourceKind
impl Copy for ResourceKind
impl Eq for ResourceKind
impl StructuralPartialEq for ResourceKind
Auto Trait Implementations§
impl Freeze for ResourceKind
impl RefUnwindSafe for ResourceKind
impl Send for ResourceKind
impl Sync for ResourceKind
impl Unpin for ResourceKind
impl UnsafeUnpin for ResourceKind
impl UnwindSafe for ResourceKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.