pub struct FieldSchema {
pub name: String,
pub description: String,
pub dtype: DataType,
pub is_primary: bool,
pub auto_id: bool,
pub chunk_size: usize,
pub dim: i64,
pub max_length: i32,
}
Fields§
§name: String
§description: String
§dtype: DataType
§is_primary: bool
§auto_id: bool
§chunk_size: usize
§dim: i64
§max_length: i32
Implementations§
Source§impl FieldSchema
impl FieldSchema
pub const fn const_default() -> Self
Source§impl FieldSchema
impl FieldSchema
pub fn new_bool(name: &str, description: &str) -> Self
pub fn new_int8(name: &str, description: &str) -> Self
pub fn new_int16(name: &str, description: &str) -> Self
pub fn new_int32(name: &str, description: &str) -> Self
pub fn new_int64(name: &str, description: &str) -> Self
pub fn new_primary_int64(name: &str, description: &str, auto_id: bool) -> Self
pub fn new_primary_varchar( name: &str, description: &str, auto_id: bool, max_length: i32, ) -> Self
pub fn new_float(name: &str, description: &str) -> Self
pub fn new_double(name: &str, description: &str) -> Self
pub fn new_string(name: &str, description: &str) -> Self
pub fn new_varchar(name: &str, description: &str, max_length: i32) -> Self
pub fn new_binary_vector(name: &str, description: &str, dim: i64) -> Self
pub fn new_float_vector(name: &str, description: &str, dim: i64) -> Self
Trait Implementations§
Source§impl Clone for FieldSchema
impl Clone for FieldSchema
Source§fn clone(&self) -> FieldSchema
fn clone(&self) -> FieldSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FieldSchema
impl Debug for FieldSchema
Source§impl Default for FieldSchema
impl Default for FieldSchema
Source§impl From<FieldSchema> for FieldSchema
impl From<FieldSchema> for FieldSchema
Source§fn from(fld: FieldSchema) -> Self
fn from(fld: FieldSchema) -> Self
Converts to this type from the input type.
Source§impl From<FieldSchema> for FieldSchema
impl From<FieldSchema> for FieldSchema
Source§fn from(fld: FieldSchema) -> FieldSchema
fn from(fld: FieldSchema) -> FieldSchema
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FieldSchema
impl RefUnwindSafe for FieldSchema
impl Send for FieldSchema
impl Sync for FieldSchema
impl Unpin for FieldSchema
impl UnwindSafe for FieldSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request