pub struct KbAnswerPatch {
pub title: Option<String>,
pub body: Option<String>,
pub published: Option<bool>,
}Expand description
A partial update for KnowledgeBaseApi::update_answer. Every field is
optional; None leaves the current value untouched.
Fields§
§title: Option<String>New title.
body: Option<String>New body (HTML or plain text).
published: Option<bool>Some(true) publishes, Some(false) reverts to a draft, None leaves
the published state unchanged.
Trait Implementations§
Source§impl Clone for KbAnswerPatch
impl Clone for KbAnswerPatch
Source§impl Debug for KbAnswerPatch
impl Debug for KbAnswerPatch
Auto Trait Implementations§
impl Freeze for KbAnswerPatch
impl RefUnwindSafe for KbAnswerPatch
impl Send for KbAnswerPatch
impl Sync for KbAnswerPatch
impl Unpin for KbAnswerPatch
impl UnsafeUnpin for KbAnswerPatch
impl UnwindSafe for KbAnswerPatch
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