pub struct CreateCollectionQuery {
pub name: String,
pub kind: String,
pub if_not_exists: bool,
pub vector_dimension: Option<usize>,
pub vector_metric: Option<DistanceMetric>,
pub allowed_signers: Vec<[u8; 32]>,
}Expand description
CREATE COLLECTION name KIND kind [SIGNED_BY (‘pubkey_hex’, …)]
Fields§
§name: String§kind: String§if_not_exists: bool§vector_dimension: Option<usize>§vector_metric: Option<DistanceMetric>§allowed_signers: Vec<[u8; 32]>Initial Ed25519 allowed-signer registry. Empty = unsigned collection.
Each entry is a 32-byte Ed25519 public key. Mutable post-create via
ALTER COLLECTION ... ADD|REVOKE SIGNER (see issue #520).
Trait Implementations§
Source§impl Clone for CreateCollectionQuery
impl Clone for CreateCollectionQuery
Auto Trait Implementations§
impl Freeze for CreateCollectionQuery
impl RefUnwindSafe for CreateCollectionQuery
impl Send for CreateCollectionQuery
impl Sync for CreateCollectionQuery
impl Unpin for CreateCollectionQuery
impl UnsafeUnpin for CreateCollectionQuery
impl UnwindSafe for CreateCollectionQuery
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