pub struct ExperimentalFeatures<'a, Http: HttpClient> {
pub metrics: Option<bool>,
pub contains_filter: Option<bool>,
pub logs_route: Option<bool>,
pub network: Option<bool>,
pub edit_documents_by_function: Option<bool>,
pub multimodal: 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);Fields§
§metrics: Option<bool>§contains_filter: Option<bool>§logs_route: Option<bool>§network: Option<bool>§edit_documents_by_function: Option<bool>§multimodal: 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
Sourcepub async fn get(&self) -> Result<ExperimentalFeaturesResult, Error>
pub async fn get(&self) -> Result<ExperimentalFeaturesResult, Error>
Get all the experimental features
§Example
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
let features = ExperimentalFeatures::new(&client);
features.update().await.unwrap();pub fn set_metrics(&mut self, metrics: bool) -> &mut Self
pub fn set_logs_route(&mut self, logs_route: bool) -> &mut Self
pub fn set_contains_filter(&mut self, contains_filter: bool) -> &mut Self
pub fn set_edit_documents_by_function( &mut self, edit_documents_by_function: bool, ) -> &mut Self
pub fn set_network(&mut self, network: bool) -> &mut Self
pub fn set_multimodal(&mut self, multimodal: bool) -> &mut Self
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