pub struct WeaviateConfig {
pub scheme: String,
pub host: String,
pub class_name: String,
pub api_key: Option<String>,
}Expand description
Configuration for connecting to a Weaviate instance.
Fields§
§scheme: StringHTTP scheme: http or https.
host: StringHost and port, e.g. localhost:8080 or my-cluster.weaviate.network.
class_name: StringWeaviate class (collection) name. Must start with an uppercase letter.
api_key: Option<String>Optional API key for authentication (Weaviate Cloud Services).
Implementations§
Trait Implementations§
Source§impl Clone for WeaviateConfig
impl Clone for WeaviateConfig
Source§fn clone(&self) -> WeaviateConfig
fn clone(&self) -> WeaviateConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WeaviateConfig
impl RefUnwindSafe for WeaviateConfig
impl Send for WeaviateConfig
impl Sync for WeaviateConfig
impl Unpin for WeaviateConfig
impl UnsafeUnpin for WeaviateConfig
impl UnwindSafe for WeaviateConfig
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