pub struct SearchConfigs { /* private fields */ }Expand description
Search configuration operations.
Implementations§
Source§impl SearchConfigs
impl SearchConfigs
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Whether search configuration management is supported by the active backend.
Sourcepub fn create(&self, input: CreateSearchConfig) -> Result<SearchConfig>
pub fn create(&self, input: CreateSearchConfig) -> Result<SearchConfig>
Sourcepub fn get(&self, id: SearchConfigId) -> Result<Option<SearchConfig>>
pub fn get(&self, id: SearchConfigId) -> Result<Option<SearchConfig>>
Get a search configuration by ID.
Sourcepub fn update(
&self,
id: SearchConfigId,
input: UpdateSearchConfig,
) -> Result<SearchConfig>
pub fn update( &self, id: SearchConfigId, input: UpdateSearchConfig, ) -> Result<SearchConfig>
Update a search configuration.
Sourcepub fn list(&self, filter: SearchConfigFilter) -> Result<Vec<SearchConfig>>
pub fn list(&self, filter: SearchConfigFilter) -> Result<Vec<SearchConfig>>
List search configurations with optional filtering.
Sourcepub fn delete(&self, id: SearchConfigId) -> Result<()>
pub fn delete(&self, id: SearchConfigId) -> Result<()>
Delete a search configuration.
Sourcepub fn get_active(&self) -> Result<Option<SearchConfig>>
pub fn get_active(&self) -> Result<Option<SearchConfig>>
Get the currently active search configuration.
Sourcepub fn set_active(&self, id: SearchConfigId) -> Result<SearchConfig>
pub fn set_active(&self, id: SearchConfigId) -> Result<SearchConfig>
Set a configuration as active (deactivating any current one).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SearchConfigs
impl !UnwindSafe for SearchConfigs
impl Freeze for SearchConfigs
impl Send for SearchConfigs
impl Sync for SearchConfigs
impl Unpin for SearchConfigs
impl UnsafeUnpin for SearchConfigs
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