pub struct Correspondent {
pub id: CorrespondentId,
pub slug: String,
pub name: String,
pub match_pattern: String,
pub matching_algorithm: MatchAlgorithm,
pub is_insensitive: bool,
pub document_count: u32,
pub owner: Option<UserId>,
pub permissions: ItemPermissions,
}Expand description
A correspondent
Fields§
§id: CorrespondentIdUnique identifier of the correspondent.
slug: StringSlug of the correspondent.
name: StringName of the correspondent.
match_pattern: StringMatching pattern for the tag.
matching_algorithm: MatchAlgorithmMatching algorithm for the tag.
is_insensitive: boolWhether the tag matching is case-insensitive.
document_count: u32The number of documents associated with this correspondent.
owner: Option<UserId>The user who owns this correspondent, if any.
permissions: ItemPermissionsThe permissions for 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 Default for Correspondent
impl Default for Correspondent
Source§fn default() -> Correspondent
fn default() -> Correspondent
Returns the “default value” for a type. Read more
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
Source§impl Item for Correspondent
impl Item for Correspondent
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