pub struct Correspondent {
pub id: CorrespondentId,
pub slug: String,
pub name: String,
pub document_count: u32,
pub owner: Option<UserId>,
pub user_can_change: bool,
}Expand description
A correspondent
Fields§
§id: CorrespondentId§slug: String§name: String§document_count: u32The number of documents associated with this correspondent.
owner: Option<UserId>The user who owns this correspondent, if any.
user_can_change: boolWhether the current user can change this correspondent.
Trait Implementations§
Source§impl Clone for Correspondent
impl Clone for Correspondent
Source§fn clone(&self) -> Correspondent
fn clone(&self) -> Correspondent
Returns a duplicate 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 Correspondent
impl Debug for Correspondent
Source§impl<'de> Deserialize<'de> for Correspondent
impl<'de> Deserialize<'de> for Correspondent
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
Auto Trait Implementations§
impl Freeze for Correspondent
impl RefUnwindSafe for Correspondent
impl Send for Correspondent
impl Sync for Correspondent
impl Unpin for Correspondent
impl UnsafeUnpin for Correspondent
impl UnwindSafe for Correspondent
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