pub struct NoteUpdate {
pub comment_viewer_id: Option<Option<i64>>,
pub security_level_id: Option<Option<i64>>,
pub text: String,
pub extra: Map<String, Value>,
}Expand description
Replaces note text and visibility values for the first link matching the path domainType.
Fields§
§comment_viewer_id: Option<Option<i64>>Person-comment visibility category. The update handler does not repeat the category permission check used on create.
None leaves the field out, Some(None) sends null.
security_level_id: Option<Option<i64>>Group-note security level. Unlike create, the update does not accept legacy string representations.
None leaves the field out, Some(None) sends null.
text: StringNote content shared by all links.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for NoteUpdate
impl Clone for NoteUpdate
Source§impl Debug for NoteUpdate
impl Debug for NoteUpdate
Source§impl Default for NoteUpdate
impl Default for NoteUpdate
Source§impl<'de> Deserialize<'de> for NoteUpdate
impl<'de> Deserialize<'de> for NoteUpdate
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 NoteUpdate
impl PartialEq for NoteUpdate
Source§impl Serialize for NoteUpdate
impl Serialize for NoteUpdate
impl StructuralPartialEq for NoteUpdate
Auto Trait Implementations§
impl Freeze for NoteUpdate
impl RefUnwindSafe for NoteUpdate
impl Send for NoteUpdate
impl Sync for NoteUpdate
impl Unpin for NoteUpdate
impl UnsafeUnpin for NoteUpdate
impl UnwindSafe for NoteUpdate
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