Enum clean_base::dtos::Parent
source · pub enum Parent<T, U> {
Record(T),
Id(U),
}
Expand description
A parent record
This enumerator allow represents the parent elements using their primary key (Id option) or the true record (Record option).
Variants§
Trait Implementations§
source§impl<'de, T, U> Deserialize<'de> for Parent<T, U>where
T: Deserialize<'de>,
U: Deserialize<'de>,
impl<'de, T, U> Deserialize<'de> for Parent<T, U>where
T: Deserialize<'de>,
U: Deserialize<'de>,
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<T: PartialEq, U: PartialEq> PartialEq for Parent<T, U>
impl<T: PartialEq, U: PartialEq> PartialEq for Parent<T, U>
source§impl<'__s, T, U> ToSchema<'__s> for Parent<T, U>
impl<'__s, T, U> ToSchema<'__s> for Parent<T, U>
impl<T, U> StructuralPartialEq for Parent<T, U>
Auto Trait Implementations§
impl<T, U> RefUnwindSafe for Parent<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Parent<T, U>
impl<T, U> Sync for Parent<T, U>
impl<T, U> Unpin for Parent<T, U>
impl<T, U> UnwindSafe for Parent<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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