pub struct SaveOptions { /* private fields */ }
Expand description
Extra options for saving pages
Implementations§
Source§impl SaveOptions
impl SaveOptions
Sourcepub fn set_summary(self, summary: &str) -> Self
pub fn set_summary(self, summary: &str) -> Self
Change the edit summary
Sourcepub fn mark_as_bot(self, mark: bool) -> Self
pub fn mark_as_bot(self, mark: bool) -> Self
Overide the default mark_as_bot option with the given value
Sourcepub fn mark_as_minor(self, mark: bool) -> Self
pub fn mark_as_minor(self, mark: bool) -> Self
Mark the edit as minor, or override the “Mark all edits as minor by default” preference to not mark it as minor.
Auto Trait Implementations§
impl Freeze for SaveOptions
impl RefUnwindSafe for SaveOptions
impl Send for SaveOptions
impl Sync for SaveOptions
impl Unpin for SaveOptions
impl UnwindSafe for SaveOptions
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