pub struct CreateCollectionParams {
pub id: String,
pub description: Option<String>,
pub write_api_key: Option<String>,
pub read_api_key: Option<String>,
pub language: Option<Language>,
pub embeddings_model: Option<EmbeddingsModel>,
}Expand description
Parameters for creating a collection
Fields§
§id: String§description: Option<String>§write_api_key: Option<String>§read_api_key: Option<String>§language: Option<Language>§embeddings_model: Option<EmbeddingsModel>Implementations§
Source§impl CreateCollectionParams
impl CreateCollectionParams
Sourcepub fn with_description<S: Into<String>>(self, description: S) -> Self
pub fn with_description<S: Into<String>>(self, description: S) -> Self
Set the description
Sourcepub fn with_write_api_key<S: Into<String>>(self, key: S) -> Self
pub fn with_write_api_key<S: Into<String>>(self, key: S) -> Self
Set the write API key
Sourcepub fn with_read_api_key<S: Into<String>>(self, key: S) -> Self
pub fn with_read_api_key<S: Into<String>>(self, key: S) -> Self
Set the read API key
Sourcepub fn with_language(self, language: Language) -> Self
pub fn with_language(self, language: Language) -> Self
Set the language
Sourcepub fn with_embeddings_model(self, model: EmbeddingsModel) -> Self
pub fn with_embeddings_model(self, model: EmbeddingsModel) -> Self
Set the embeddings model
Trait Implementations§
Source§impl Clone for CreateCollectionParams
impl Clone for CreateCollectionParams
Source§fn clone(&self) -> CreateCollectionParams
fn clone(&self) -> CreateCollectionParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateCollectionParams
impl Debug for CreateCollectionParams
Auto Trait Implementations§
impl Freeze for CreateCollectionParams
impl RefUnwindSafe for CreateCollectionParams
impl Send for CreateCollectionParams
impl Sync for CreateCollectionParams
impl Unpin for CreateCollectionParams
impl UnsafeUnpin for CreateCollectionParams
impl UnwindSafe for CreateCollectionParams
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