Struct weaviate_community::Meta
source · pub struct Meta { /* private fields */ }
Expand description
All meta related endpoints and functionality described in Weaviate meta API documentation
Implementations§
source§impl Meta
impl Meta
sourcepub async fn get_meta(&self) -> Result<Metadata, Box<dyn Error>>
pub async fn get_meta(&self) -> Result<Metadata, Box<dyn Error>>
Get the metadata associated to the clients Weaviate instance.
§Return value
- Full Response of get request, deserializable into: hostname, version, module
§Errors
If the client is unable to execute get, an Err result is returned.
§Examples
use weaviate_community::WeaviateClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = WeaviateClient::builder("http://localhost:8080").build()?;
let res = client.meta.get_meta().await?;
Ok(())
}
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl !UnwindSafe for Meta
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