pub enum ResourceKind {
DataSource,
Index,
Skillset,
Indexer,
SynonymMap,
Alias,
KnowledgeSource,
KnowledgeBase,
Agent,
Deployment,
Connection,
Guardrail,
}Expand description
Enumeration of all supported resource types across service domains
Variants§
DataSource
Index
Skillset
Indexer
SynonymMap
Alias
KnowledgeSource
KnowledgeBase
Agent
Deployment
Connection
Guardrail
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 api_path(&self) -> &'static str
pub fn api_path(&self) -> &'static str
Returns the API collection path segment for this resource type
Sourcepub fn directory_name(&self) -> &'static str
pub fn directory_name(&self) -> &'static str
Returns the directory name for local storage, relative to the
project’s domain directory (search/ or foundry/).
Sourcepub fn from_directory_name(dir: &str) -> Option<ResourceKind>
pub fn from_directory_name(dir: &str) -> Option<ResourceKind>
Parse a directory name back to a kind.
Sourcepub fn cli_name(&self) -> &'static str
pub fn cli_name(&self) -> &'static str
Returns the CLI name for this resource type (rigg new <kind>).
Sourcepub fn from_cli_name(s: &str) -> Option<ResourceKind>
pub fn from_cli_name(s: &str) -> Option<ResourceKind>
Parse a CLI name (as used by rigg new) into a kind.
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]
Legacy shim (pre-0.18 semantics): core search-management kinds. Retired together with the old command implementations.
Sourcepub fn cli_flag_name(&self) -> &'static str
pub fn cli_flag_name(&self) -> &'static str
Legacy shim: old singular flag name. Retired with the old CLI.
Sourcepub fn cli_flag_name_plural(&self) -> &'static str
pub fn cli_flag_name_plural(&self) -> &'static str
Legacy shim: old plural flag name. Retired with the old CLI.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ResourceKind
Source§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
impl Eq for ResourceKind
Source§impl Hash for ResourceKind
impl Hash for ResourceKind
Source§impl Ord for ResourceKind
impl Ord for ResourceKind
Source§fn cmp(&self, other: &ResourceKind) -> Ordering
fn cmp(&self, other: &ResourceKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ResourceKind
impl PartialEq for ResourceKind
Source§impl PartialOrd for ResourceKind
impl PartialOrd for ResourceKind
Source§impl Serialize for ResourceKind
impl Serialize 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.