pub struct CreateCollectionQuery {
pub name: String,
pub description: Option<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§description: Option<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 Forget for CreateCollectionQuery
impl Freeze for CreateCollectionQuery
impl Move for CreateCollectionQuery
impl RefUnwindSafe for CreateCollectionQuery
impl Send for CreateCollectionQuerywhere
RawVecInner: Send,
impl Sync for CreateCollectionQuerywhere
RawVecInner: Sync,
impl Unpin for CreateCollectionQuery
impl UnsafeUnpin for CreateCollectionQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<[u8; 32]>: UnsafeUnpin,
impl UnwindSafe for CreateCollectionQuerywhere
RawVecInner: UnwindSafe,
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