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_ids: &'a [String],
}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_ids: &'a [String]Ids treated as taken when minting a successor, so a twin file on another layout cannot share a suffix with it.
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