pub struct CollectionModel {
pub name: String,
pub size: Option<i64>,
pub status: Status,
pub dimension: Option<i32>,
pub vector_count: Option<i32>,
pub environment: String,
}
Expand description
CollectionModel : The CollectionModel describes the configuration and status of a Pinecone collection.
Fields§
§name: String
The name of the collection.
size: Option<i64>
The size of the collection in bytes.
status: Status
The status of the collection.
dimension: Option<i32>
The dimension of the vectors stored in each record held in the collection.
vector_count: Option<i32>
The number of records stored in the collection.
environment: String
The environment where the collection is hosted.
Implementations§
Source§impl CollectionModel
impl CollectionModel
Sourcepub fn new(name: String, status: Status, environment: String) -> CollectionModel
pub fn new(name: String, status: Status, environment: String) -> CollectionModel
The CollectionModel describes the configuration and status of a Pinecone collection.
Trait Implementations§
Source§impl Clone for CollectionModel
impl Clone for CollectionModel
Source§fn clone(&self) -> CollectionModel
fn clone(&self) -> CollectionModel
Returns a duplicate of the value. Read more
1.0.0 · 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 CollectionModel
impl Debug for CollectionModel
Source§impl Default for CollectionModel
impl Default for CollectionModel
Source§fn default() -> CollectionModel
fn default() -> CollectionModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollectionModel
impl<'de> Deserialize<'de> for CollectionModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CollectionModel
impl PartialEq for CollectionModel
Source§impl Serialize for CollectionModel
impl Serialize for CollectionModel
impl StructuralPartialEq for CollectionModel
Auto Trait Implementations§
impl Freeze for CollectionModel
impl RefUnwindSafe for CollectionModel
impl Send for CollectionModel
impl Sync for CollectionModel
impl Unpin for CollectionModel
impl UnwindSafe for CollectionModel
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