pub struct CommentViewer {
pub id: i64,
pub name: String,
pub name_translated: String,
pub sort_key: i64,
pub extra: Map<String, Value>,
}Expand description
Visibility category for person comments and person-linked notes. This is a master-data label referenced by commentViewerId, not a ChurchTools group or a list of people. Access is assigned through the view comments permission for this ID.
Fields§
§id: i64Category ID used as commentViewerId and as a selection of churchdb view comments.
name: StringStored category name or translation key.
name_translated: StringName translated for the current language, falling back to the stored name.
sort_key: i64Display sort key. Lists are sorted by sortKey, then stored name, both ascending.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for CommentViewer
impl Clone for CommentViewer
Source§impl Debug for CommentViewer
impl Debug for CommentViewer
Source§impl Default for CommentViewer
impl Default for CommentViewer
Source§impl<'de> Deserialize<'de> for CommentViewer
impl<'de> Deserialize<'de> for CommentViewer
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 for CommentViewer
impl PartialEq for CommentViewer
Source§impl Serialize for CommentViewer
impl Serialize for CommentViewer
impl StructuralPartialEq for CommentViewer
Auto Trait Implementations§
impl Freeze for CommentViewer
impl RefUnwindSafe for CommentViewer
impl Send for CommentViewer
impl Sync for CommentViewer
impl Unpin for CommentViewer
impl UnsafeUnpin for CommentViewer
impl UnwindSafe for CommentViewer
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