Struct backend::EntriesDTO
source · pub struct EntriesDTO {
pub version: u16,
pub entries: Vec<EntryDraft>,
}Expand description
Entries data transfer object
Fields§
§version: u16§entries: Vec<EntryDraft>Implementations§
source§impl EntriesDTO
impl EntriesDTO
pub fn new(entries: Vec<EntryDraft>) -> Self
Trait Implementations§
source§impl Clone for EntriesDTO
impl Clone for EntriesDTO
source§fn clone(&self) -> EntriesDTO
fn clone(&self) -> EntriesDTO
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EntriesDTO
impl Debug for EntriesDTO
source§impl<'de> Deserialize<'de> for EntriesDTO
impl<'de> Deserialize<'de> for EntriesDTO
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 PartialEq<EntriesDTO> for EntriesDTO
impl PartialEq<EntriesDTO> for EntriesDTO
source§fn eq(&self, other: &EntriesDTO) -> bool
fn eq(&self, other: &EntriesDTO) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for EntriesDTO
impl Serialize for EntriesDTO
impl Eq for EntriesDTO
impl StructuralEq for EntriesDTO
impl StructuralPartialEq for EntriesDTO
Auto Trait Implementations§
impl RefUnwindSafe for EntriesDTO
impl Send for EntriesDTO
impl Sync for EntriesDTO
impl Unpin for EntriesDTO
impl UnwindSafe for EntriesDTO
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.