Struct meilisearch_sdk::features::ExperimentalFeatures
source · pub struct ExperimentalFeatures<'a, Http: HttpClient> {
pub vector_store: Option<bool>,
/* private fields */
}Expand description
Struct representing the experimental features request.
You can build this struct using the builder pattern.
§Example
let mut features = ExperimentalFeatures::new(&client);
features.set_vector_store(true);Fields§
§vector_store: Option<bool>Implementations§
source§impl<'a, Http: HttpClient> ExperimentalFeatures<'a, Http>
impl<'a, Http: HttpClient> ExperimentalFeatures<'a, Http>
pub fn new(client: &'a Client<Http>) -> Self
pub fn set_vector_store(&mut self, vector_store: bool) -> &mut Self
sourcepub async fn get(&self) -> Result<ExperimentalFeaturesResult, Error>
pub async fn get(&self) -> Result<ExperimentalFeaturesResult, Error>
Get all the experimental features
§Example
tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap().block_on(async {
let features = ExperimentalFeatures::new(&client);
features.get().await.unwrap();
});sourcepub async fn update(&self) -> Result<ExperimentalFeaturesResult, Error>
pub async fn update(&self) -> Result<ExperimentalFeaturesResult, Error>
Update the experimental features
§Example
tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap().block_on(async {
let mut features = ExperimentalFeatures::new(&client);
features.set_vector_store(true);
features.update().await.unwrap();
});Trait Implementations§
source§impl<'a, Http: Debug + HttpClient> Debug for ExperimentalFeatures<'a, Http>
impl<'a, Http: Debug + HttpClient> Debug for ExperimentalFeatures<'a, Http>
source§impl<'a, Http: HttpClient> Serialize for ExperimentalFeatures<'a, Http>
impl<'a, Http: HttpClient> Serialize for ExperimentalFeatures<'a, Http>
Auto Trait Implementations§
impl<'a, Http> Freeze for ExperimentalFeatures<'a, Http>
impl<'a, Http> RefUnwindSafe for ExperimentalFeatures<'a, Http>where
Http: RefUnwindSafe,
impl<'a, Http> Send for ExperimentalFeatures<'a, Http>
impl<'a, Http> Sync for ExperimentalFeatures<'a, Http>
impl<'a, Http> Unpin for ExperimentalFeatures<'a, Http>
impl<'a, Http> UnwindSafe for ExperimentalFeatures<'a, Http>where
Http: RefUnwindSafe,
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more