pub struct RejectOpts<'a> {
pub to: Option<&'a str>,
pub project: Option<&'a str>,
pub title: Option<&'a str>,
pub reason: Option<&'a str>,
pub dst_layout: Option<&'a Layout>,
pub dst_extra_id_paths: &'a [PathBuf],
}Expand description
Optional fields on reject.
Fields§
§to: Option<&'a str>Existing destination id. When set, that heading is the successor.
project: Option<&'a str>Project to create the destination in when Self::to is absent.
title: Option<&'a str>Title of a created destination. The source title is used when omitted.
reason: Option<&'a str>Prose appended to the cancelled source.
dst_layout: Option<&'a Layout>Tracker that holds the destination. None keeps the source’s.
dst_extra_id_paths: &'a [PathBuf]Twin files read under the lock when minting a successor, so a twin on another layout cannot share a suffix with it. Paths and not ids, because ids the caller read before the lock can be stale by the time it is held.
Trait Implementations§
Source§impl<'a> Clone for RejectOpts<'a>
impl<'a> Clone for RejectOpts<'a>
Source§fn clone(&self) -> RejectOpts<'a>
fn clone(&self) -> RejectOpts<'a>
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 moreimpl<'a> Copy for RejectOpts<'a>
Source§impl<'a> Debug for RejectOpts<'a>
impl<'a> Debug for RejectOpts<'a>
Source§impl<'a> Default for RejectOpts<'a>
impl<'a> Default for RejectOpts<'a>
Source§fn default() -> RejectOpts<'a>
fn default() -> RejectOpts<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RejectOpts<'a>
impl<'a> RefUnwindSafe for RejectOpts<'a>
impl<'a> Send for RejectOpts<'a>
impl<'a> Sync for RejectOpts<'a>
impl<'a> Unpin for RejectOpts<'a>
impl<'a> UnsafeUnpin for RejectOpts<'a>
impl<'a> UnwindSafe for RejectOpts<'a>
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