pub struct DocumentType {
pub id: DocumentTypeId,
pub slug: String,
pub name: String,
pub match_pattern: String,
pub matching_algorithm: MatchAlgorithm,
pub is_insensitive: Option<bool>,
pub document_count: u32,
pub owner: Option<UserId>,
pub permissions: ItemPermissions,
}Expand description
A document type.
Fields§
§id: DocumentTypeIdUnique identifier of the document type.
slug: StringSlug of the document type.
name: StringName of the document type.
match_pattern: StringMatching pattern for the document type.
matching_algorithm: MatchAlgorithmMatching algorithm for the document type.
is_insensitive: Option<bool>Whether the document type matching is case-insensitive.
document_count: u32Number of documents with this type.
owner: Option<UserId>Owner of the document type.
permissions: ItemPermissionsThe permissions for this document type.
Trait Implementations§
Source§impl Clone for DocumentType
impl Clone for DocumentType
Source§fn clone(&self) -> DocumentType
fn clone(&self) -> DocumentType
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 moreSource§impl Debug for DocumentType
impl Debug for DocumentType
Source§impl<'de> Deserialize<'de> for DocumentType
impl<'de> Deserialize<'de> for DocumentType
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 DocumentType
impl Item for DocumentType
Source§type Id = DocumentTypeId
type Id = DocumentTypeId
The ID type for this item.
Source§type BaseType = DocumentType
type BaseType = DocumentType
The base type used for deserialization.
Source§type CreateDto = CreateDocumentType
type CreateDto = CreateDocumentType
The DTO type used for creating new items.
Source§type UpdateDto = UpdateDocumentType
type UpdateDto = UpdateDocumentType
The DTO type used for updating existing items.
Auto Trait Implementations§
impl Freeze for DocumentType
impl RefUnwindSafe for DocumentType
impl Send for DocumentType
impl Sync for DocumentType
impl Unpin for DocumentType
impl UnsafeUnpin for DocumentType
impl UnwindSafe for DocumentType
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