pub struct CollectionManagerConfig {
pub collection_id: String,
pub api_key: String,
pub cluster: Option<ClusterConfig>,
pub auth_jwt_url: Option<String>,
}Expand description
Configuration for CollectionManager
Fields§
§collection_id: String§api_key: String§cluster: Option<ClusterConfig>§auth_jwt_url: Option<String>Implementations§
Source§impl CollectionManagerConfig
impl CollectionManagerConfig
Sourcepub fn new<S: Into<String>>(collection_id: S, api_key: S) -> Self
pub fn new<S: Into<String>>(collection_id: S, api_key: S) -> Self
Create a new CollectionManagerConfig
Sourcepub fn with_cluster(self, cluster: ClusterConfig) -> Self
pub fn with_cluster(self, cluster: ClusterConfig) -> Self
Set cluster configuration
Sourcepub fn with_auth_jwt_url<S: Into<String>>(self, url: S) -> Self
pub fn with_auth_jwt_url<S: Into<String>>(self, url: S) -> Self
Set auth JWT URL
Trait Implementations§
Source§impl Clone for CollectionManagerConfig
impl Clone for CollectionManagerConfig
Source§fn clone(&self) -> CollectionManagerConfig
fn clone(&self) -> CollectionManagerConfig
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 moreAuto Trait Implementations§
impl Freeze for CollectionManagerConfig
impl RefUnwindSafe for CollectionManagerConfig
impl Send for CollectionManagerConfig
impl Sync for CollectionManagerConfig
impl Unpin for CollectionManagerConfig
impl UnsafeUnpin for CollectionManagerConfig
impl UnwindSafe for CollectionManagerConfig
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