pub struct WikiPageUpdate {
pub is_markdown: Option<bool>,
pub on_startpage: Option<bool>,
pub text: Option<Option<String>>,
pub extra: Map<String, Value>,
}Expand description
Partial page update; an empty object is accepted. The page title, GUID and category are not editable here.
Fields§
§is_markdown: Option<bool>§on_startpage: Option<bool>§text: Option<Option<String>>Trimmed replacement content. A different stored value creates a new version; null or blank clears the text. Omission leaves it unchanged.
None leaves the field out, Some(None) sends null.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for WikiPageUpdate
impl Clone for WikiPageUpdate
Source§impl Debug for WikiPageUpdate
impl Debug for WikiPageUpdate
Source§impl Default for WikiPageUpdate
impl Default for WikiPageUpdate
Source§impl<'de> Deserialize<'de> for WikiPageUpdate
impl<'de> Deserialize<'de> for WikiPageUpdate
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 WikiPageUpdate
impl PartialEq for WikiPageUpdate
Source§impl Serialize for WikiPageUpdate
impl Serialize for WikiPageUpdate
impl StructuralPartialEq for WikiPageUpdate
Auto Trait Implementations§
impl Freeze for WikiPageUpdate
impl RefUnwindSafe for WikiPageUpdate
impl Send for WikiPageUpdate
impl Sync for WikiPageUpdate
impl Unpin for WikiPageUpdate
impl UnsafeUnpin for WikiPageUpdate
impl UnwindSafe for WikiPageUpdate
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