pub struct IndexBuilder { /* private fields */ }
Implementations§
Source§impl IndexBuilder
impl IndexBuilder
pub fn with_name(index_name: String) -> Self
pub fn with_port(self, port: u16) -> Self
pub fn with_protocol(self, protocol: Protocol) -> Self
pub fn without_certificate_validation(self) -> Self
pub fn with_credentials(self, credentials: Credentials) -> Self
pub fn host(&self) -> &str
pub fn port(&self) -> u16
pub async fn index_exists(&self) -> Result<bool>
pub async fn connect(self) -> Result<Index>
pub async fn create_index(&self) -> Result<Index>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexBuilder
impl RefUnwindSafe for IndexBuilder
impl Send for IndexBuilder
impl Sync for IndexBuilder
impl Unpin for IndexBuilder
impl UnwindSafe for IndexBuilder
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