pub struct DraftTransition {
pub id: DraftId,
pub from: DraftState,
pub to: DraftState,
pub source_path: PathBuf,
pub target_path: PathBuf,
}Expand description
Result of a successful draft lifecycle transition.
Fields§
§id: DraftIdDraft moved by this transition.
from: DraftStateSource lifecycle state.
to: DraftStateTarget lifecycle state.
source_path: PathBufPath occupied before the atomic rename.
target_path: PathBufPath occupied after the atomic rename.
Trait Implementations§
Source§impl Clone for DraftTransition
impl Clone for DraftTransition
Source§fn clone(&self) -> DraftTransition
fn clone(&self) -> DraftTransition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DraftTransition
impl Debug for DraftTransition
Source§impl PartialEq for DraftTransition
impl PartialEq for DraftTransition
impl Eq for DraftTransition
impl StructuralPartialEq for DraftTransition
Auto Trait Implementations§
impl Freeze for DraftTransition
impl RefUnwindSafe for DraftTransition
impl Send for DraftTransition
impl Sync for DraftTransition
impl Unpin for DraftTransition
impl UnsafeUnpin for DraftTransition
impl UnwindSafe for DraftTransition
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.