[−][src]Struct arangoq::arango_connection::CollectionMandatory
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]
fn clone(&self) -> CollectionMandatory
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CollectionMandatory
[src]
impl Default for CollectionMandatory
[src]
fn default() -> CollectionMandatory
[src]
impl<'de> Deserialize<'de> for CollectionMandatory
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<CollectionMandatory> for CollectionMandatory
[src]
fn eq(&self, other: &CollectionMandatory) -> bool
[src]
fn ne(&self, other: &CollectionMandatory) -> bool
[src]
impl Serialize for CollectionMandatory
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for CollectionMandatory
[src]
Auto Trait Implementations
impl RefUnwindSafe for CollectionMandatory
impl Send for CollectionMandatory
impl Sync for CollectionMandatory
impl Unpin for CollectionMandatory
impl UnwindSafe for CollectionMandatory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,