pub struct NewDoc {
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 body: 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.
body: Option<String>Body to write instead of the type’s template (audit records, generated documents).
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