pub struct NoteCreate {
pub comment_viewer_id: Option<Option<i64>>,
pub security_level_id: Option<Option<i64>>,
pub text: String,
pub extra: Map<String, Value>,
}Expand description
Content and link visibility for a new note. The target domain and object ID come from the URL.
Fields§
§comment_viewer_id: Option<Option<i64>>Visibility category for person notes. Creating a person note requires permission for this category.
None leaves the field out, Some(None) sends null.
security_level_id: Option<Option<i64>>Group-note security threshold; ignored for list filtering in the other domains. The create handler also accepts 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 NoteCreate
impl Clone for NoteCreate
Source§impl Debug for NoteCreate
impl Debug for NoteCreate
Source§impl Default for NoteCreate
impl Default for NoteCreate
Source§impl<'de> Deserialize<'de> for NoteCreate
impl<'de> Deserialize<'de> for NoteCreate
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 NoteCreate
impl PartialEq for NoteCreate
Source§impl Serialize for NoteCreate
impl Serialize for NoteCreate
impl StructuralPartialEq for NoteCreate
Auto Trait Implementations§
impl Freeze for NoteCreate
impl RefUnwindSafe for NoteCreate
impl Send for NoteCreate
impl Sync for NoteCreate
impl Unpin for NoteCreate
impl UnsafeUnpin for NoteCreate
impl UnwindSafe for NoteCreate
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