pub struct NewDoc {Show 13 fields
pub ty: String,
pub title: String,
pub governs: Vec<String>,
pub owner: Option<String>,
pub slug: Option<String>,
pub from: Option<String>,
pub local: bool,
pub bundle: bool,
pub key: Option<String>,
pub number: Option<u64>,
pub body: Option<String>,
pub depends_on: Vec<String>,
pub here: Option<String>,
}Fields§
§ty: String§title: String§governs: Vec<String>§owner: Option<String>Overrides the computed owner (refused if it breaks placement, unless local).
slug: Option<String>For slug types; defaults to the slugified title.
from: Option<String>Supersede this document.
local: bool§bundle: boolForce a bundle directory even for a single-file type.
key: Option<String>Fixed key, for imports; otherwise now. A taken one moves to the next free key.
number: Option<u64>For number-keyed types: this number, refused when taken; otherwise the next free one.
body: Option<String>Body to write instead of the type’s template (audit records, generated documents).
depends_on: Vec<String>Documents this one depends on (rel.depends_on), e.g. what a change note updates.
here: Option<String>The repository-relative directory the command runs in (-C); the owner containing it is
the document’s owner when its governs decide none. None is the repository root.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewDoc
impl RefUnwindSafe for NewDoc
impl Send for NewDoc
impl Sync for NewDoc
impl Unpin for NewDoc
impl UnsafeUnpin for NewDoc
impl UnwindSafe for NewDoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more