pub struct CommentViewerUpdate {
pub name: String,
pub sort_key: Option<i64>,
pub extra: Map<String, Value>,
}Expand description
Updates a visibility category. The category ID comes from the URL. name is required; sortKey is optional and preserves its value when omitted.
Fields§
§name: StringTrimmed display name or translation key, 1–50 characters. No uniqueness constraint is applied.
sort_key: Option<i64>Optional nonnegative sort key. Omission preserves the existing value. Explicit null passes the validator but fails the integer setter; use omission to retain the value.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for CommentViewerUpdate
impl Clone for CommentViewerUpdate
Source§impl Debug for CommentViewerUpdate
impl Debug for CommentViewerUpdate
Source§impl Default for CommentViewerUpdate
impl Default for CommentViewerUpdate
Source§impl<'de> Deserialize<'de> for CommentViewerUpdate
impl<'de> Deserialize<'de> for CommentViewerUpdate
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 CommentViewerUpdate
impl PartialEq for CommentViewerUpdate
Source§impl Serialize for CommentViewerUpdate
impl Serialize for CommentViewerUpdate
impl StructuralPartialEq for CommentViewerUpdate
Auto Trait Implementations§
impl Freeze for CommentViewerUpdate
impl RefUnwindSafe for CommentViewerUpdate
impl Send for CommentViewerUpdate
impl Sync for CommentViewerUpdate
impl Unpin for CommentViewerUpdate
impl UnsafeUnpin for CommentViewerUpdate
impl UnwindSafe for CommentViewerUpdate
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