[][src]Struct arangoq::arango_connection::CollectionMandatory

pub struct CollectionMandatory { /* fields omitted */ }

This struct contains all the props the db might include on top of user defined ones.

The extra HashMap handles the case when a new property is defined in the collection, but the rust struct is not yet updated to handle that. This is mandatory to be able to replace running services granularly, instead of full halt. Avoids a panic in the old code by deserializing to extra.

During document create, _key,_id,_rev,_oldRev should be striped. This is done by skip_serializing_if = "String::is_empty" if these are left empty.

For update like operations and get, _ker or _id is required, in that case do not leave them empty or else these might be removed.

Implementations

impl CollectionMandatory[src]

#[must_use]pub fn with_key(_key: &str) -> Self[src]

#[must_use]pub fn id(&self) -> &str[src]

#[must_use]pub fn key(&self) -> &str[src]

Trait Implementations

impl Clone for CollectionMandatory[src]

impl Debug for CollectionMandatory[src]

impl Default for CollectionMandatory[src]

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

impl PartialEq<CollectionMandatory> for CollectionMandatory[src]

impl Serialize for CollectionMandatory[src]

impl StructuralPartialEq for CollectionMandatory[src]

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.