pub enum GenericFkEncoding {
Nested,
NestedList,
Split,
}Expand description
generic foreign-key field metadata derived from the openapi schema. How a generic foreign key is encoded in a NetBox write payload.
Variants§
Nested
A single nested { "object_type": ..., "object_id": ... }.
NestedList
An array of nested { "object_type": ..., "object_id": ... }.
Split
A sibling scalar pair: a <field>_type content type and a <field>_id.
Trait Implementations§
Source§impl Clone for GenericFkEncoding
impl Clone for GenericFkEncoding
Source§fn clone(&self) -> GenericFkEncoding
fn clone(&self) -> GenericFkEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GenericFkEncoding
Source§impl Debug for GenericFkEncoding
impl Debug for GenericFkEncoding
impl Eq for GenericFkEncoding
Source§impl PartialEq for GenericFkEncoding
impl PartialEq for GenericFkEncoding
Source§fn eq(&self, other: &GenericFkEncoding) -> bool
fn eq(&self, other: &GenericFkEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenericFkEncoding
Auto Trait Implementations§
impl Freeze for GenericFkEncoding
impl RefUnwindSafe for GenericFkEncoding
impl Send for GenericFkEncoding
impl Sync for GenericFkEncoding
impl Unpin for GenericFkEncoding
impl UnsafeUnpin for GenericFkEncoding
impl UnwindSafe for GenericFkEncoding
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