pub struct UpdatePatch {
pub title: Option<String>,
pub body: Option<String>,
pub mem_type: Option<String>,
pub scope: Option<Scope>,
pub project: Option<String>,
pub topic_key: Option<String>,
pub anchors: Option<Vec<AnchorSpec>>,
pub tags: Option<Vec<String>>,
}Expand description
Fields to change on an existing memory. None = leave unchanged.
Note: unsetting topic_key is not supported in v1 — Some(x) sets it,
None leaves the current value. An empty anchors/tags Vec inside
Some replaces the current value with empty.
Fields§
§title: Option<String>§body: Option<String>§mem_type: Option<String>§scope: Option<Scope>§project: Option<String>§topic_key: Option<String>§anchors: Option<Vec<AnchorSpec>>Trait Implementations§
Source§impl Clone for UpdatePatch
impl Clone for UpdatePatch
Source§fn clone(&self) -> UpdatePatch
fn clone(&self) -> UpdatePatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdatePatch
impl Debug for UpdatePatch
Source§impl Default for UpdatePatch
impl Default for UpdatePatch
Source§fn default() -> UpdatePatch
fn default() -> UpdatePatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdatePatch
impl RefUnwindSafe for UpdatePatch
impl Send for UpdatePatch
impl Sync for UpdatePatch
impl Unpin for UpdatePatch
impl UnsafeUnpin for UpdatePatch
impl UnwindSafe for UpdatePatch
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