pub struct Collection {
pub id: String,
pub name: String,
pub status: u8,
pub is_system: bool,
pub globally_unique_id: String,
/* private fields */
}
Fields§
§id: String
§name: String
§status: u8
§is_system: bool
§globally_unique_id: String
Implementations§
Source§impl Collection
impl Collection
Sourcepub fn new(name: &str, collection_type: CollectionType) -> Self
pub fn new(name: &str, collection_type: CollectionType) -> Self
ⓘ
let coll = Collection::new(coll.as_str(), CollectionType::Document);
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
Returns a copy 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 Collection
impl Debug for Collection
Source§impl Default for Collection
impl Default for Collection
Source§fn default() -> Collection
fn default() -> Collection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Collection
impl<'de> Deserialize<'de> for Collection
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 GetAll for Collection
impl GetAll for Collection
Source§fn get_all(&self) -> ArangoQuery
fn get_all(&self) -> ArangoQuery
ⓘ
let query = coll.get_all();
Source§impl GetByKey for Collection
impl GetByKey for Collection
Source§fn get_by_key<Key: Serialize>(&self, key: Key) -> ArangoQuery
fn get_by_key<Key: Serialize>(&self, key: Key) -> ArangoQuery
ⓘ
let query = coll.get_by_key(key);
Source§impl GetByKeys for Collection
impl GetByKeys for Collection
Source§fn get_by_keys<Key: Serialize>(&self, keys: &[Key]) -> ArangoQuery
fn get_by_keys<Key: Serialize>(&self, keys: &[Key]) -> ArangoQuery
ⓘ
let query = coll.get_by_keys(&["key1","key2"]);
Source§impl Insert for Collection
impl Insert for Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
Source§impl Remove for Collection
impl Remove for Collection
Source§fn remove_with_id<Id: Serialize>(&self, id: Id) -> ArangoQuery
fn remove_with_id<Id: Serialize>(&self, id: Id) -> ArangoQuery
ⓘ
let query = coll.remove_with_id("Beatles/Paul");
Source§impl Replace for Collection
impl Replace for Collection
Source§fn replace<Key: Serialize, Elem: Serialize>(
&self,
key: Key,
elem: Elem,
) -> ArangoQuery
fn replace<Key: Serialize, Elem: Serialize>( &self, key: Key, elem: Elem, ) -> ArangoQuery
ⓘ
let query = coll.replace("Paul", &TestUser::new("John Lennon"));
Source§fn replace_with_id<Id: Serialize, Replace: Serialize>(
&self,
id: Id,
replace: Replace,
) -> ArangoQuery
fn replace_with_id<Id: Serialize, Replace: Serialize>( &self, id: Id, replace: Replace, ) -> ArangoQuery
ⓘ
let query = coll.replace_with_id("Paul", &Instrument { instrument: String::from("bass") });
Source§impl Serialize for Collection
impl Serialize for Collection
Source§impl Truncate for Collection
impl Truncate for Collection
Source§fn truncate(&self) -> ArangoQuery
fn truncate(&self) -> ArangoQuery
ⓘ
let query = coll.truncate();
Source§impl Update for Collection
impl Update for Collection
Source§fn update<Key: Serialize, Update: Serialize>(
&self,
key: Key,
update: Update,
) -> ArangoQuery
fn update<Key: Serialize, Update: Serialize>( &self, key: Key, update: Update, ) -> ArangoQuery
ⓘ
let query = coll.update("Paul", &Instrument { instrument: String::from("bass") });
Source§fn update_with_id<Id: Serialize, Update: Serialize>(
&self,
id: Id,
update: Update,
) -> ArangoQuery
fn update_with_id<Id: Serialize, Update: Serialize>( &self, id: Id, update: Update, ) -> ArangoQuery
ⓘ
let query = coll.update_with_id("Paul", &Instrument { instrument: String::from("bass") });
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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