[][src]Struct arangoq::arango_api::Collection

pub struct Collection {
    pub id: String,
    pub name: String,
    pub status: u8,
    pub is_system: bool,
    pub globally_unique_id: String,
    // some fields omitted
}

Fields

id: Stringname: Stringstatus: u8is_system: boolglobally_unique_id: String

Implementations

impl Collection[src]

#[must_use]pub fn new(name: &str, collection_type: CollectionType) -> Self[src]

This example is not tested
let coll = Collection::new(coll.as_str(), CollectionType::Document);

Trait Implementations

impl Clone for Collection[src]

impl Debug for Collection[src]

impl Default for Collection[src]

impl<'de> Deserialize<'de> for Collection[src]

impl GetAll for Collection[src]

fn get_all(&self) -> ArangoQuery[src]

This example is not tested
let query = coll.get_all();

impl GetByKey for Collection[src]

fn get_by_key<Key: Serialize>(&self, key: Key) -> ArangoQuery[src]

This example is not tested
let query = coll.get_by_key(key);

impl GetByKeys for Collection[src]

fn get_by_keys<Key: Serialize>(&self, keys: &[Key]) -> ArangoQuery[src]

This example is not tested
let query = coll.get_by_keys(&["key1","key2"]);

impl Insert for Collection[src]

fn insert<Elem: Serialize>(&self, elem: &Elem) -> ArangoQuery[src]

This example is not tested
let query = coll.insert(&data);

impl PartialEq<Collection> for Collection[src]

impl Remove for Collection[src]

fn remove<Key: Serialize>(&self, key: Key) -> ArangoQuery[src]

This example is not tested
let query = coll.remove("Paul");

fn remove_with_id<Id: Serialize>(&self, id: Id) -> ArangoQuery[src]

This example is not tested
let query = coll.remove_with_id("Beatles/Paul");

impl Replace for Collection[src]

fn replace<Key: Serialize, Elem: Serialize>(
    &self,
    key: Key,
    elem: Elem
) -> ArangoQuery
[src]

This example is not tested
let query = coll.replace("Paul", &TestUser::new("John Lennon"));

fn replace_with_id<Id: Serialize, Replace: Serialize>(
    &self,
    id: Id,
    replace: Replace
) -> ArangoQuery
[src]

This example is not tested
let query = coll.replace_with_id("Paul", &Instrument { instrument: String::from("bass") });

impl Serialize for Collection[src]

impl StructuralPartialEq for Collection[src]

impl Truncate for Collection[src]

fn truncate(&self) -> ArangoQuery[src]

This example is not tested
let query = coll.truncate();

impl Update for Collection[src]

fn update<Key: Serialize, Update: Serialize>(
    &self,
    key: Key,
    update: Update
) -> ArangoQuery
[src]

This example is not tested
let query = coll.update("Paul", &Instrument { instrument: String::from("bass") });

fn update_with_id<Id: Serialize, Update: Serialize>(
    &self,
    id: Id,
    update: Update
) -> ArangoQuery
[src]

This example is not tested
let query = coll.update_with_id("Paul", &Instrument { instrument: String::from("bass") });

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.