pub struct PatchMeta {
pub name: Option<String>,
pub author: Option<String>,
pub description: Option<String>,
pub tags: Vec<String>,
}Expand description
Editable, human-facing metadata for a Patch.
Held on the live patch so it survives a to_def/from_def round-trip (the graph itself
carries no name/author/tags). All fields are optional; a default PatchMeta is empty.
Fields§
§name: Option<String>Patch name (falls back to the argument passed to Patch::to_def when None).
Author / credit.
description: Option<String>Free-form description.
Search / filter tags.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatchMeta
impl RefUnwindSafe for PatchMeta
impl Send for PatchMeta
impl Sync for PatchMeta
impl Unpin for PatchMeta
impl UnsafeUnpin for PatchMeta
impl UnwindSafe for PatchMeta
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