pub struct LifecycleRequest {
pub series_id: SeriesId,
pub action: LifecycleAction,
pub occurrence_key: Option<OccurrenceKey>,
pub actor: String,
pub reason: Option<String>,
pub confirmed: bool,
}Expand description
One confirmed lifecycle action on one series (T023/T024).
Fields§
§series_id: SeriesIdThe series to act on.
action: LifecycleActionWhich action.
occurrence_key: Option<OccurrenceKey>The occurrence key, required by skip/defer/ignore.
actor: StringWho acted; lands in the History entry.
reason: Option<String>Why, when the caller gave one.
confirmed: boolWhether the caller confirmed the action. Unconfirmed requests are inert.
Implementations§
Source§impl LifecycleRequest
impl LifecycleRequest
Sourcepub fn new(
series_id: SeriesId,
action: LifecycleAction,
actor: impl Into<String>,
) -> Self
pub fn new( series_id: SeriesId, action: LifecycleAction, actor: impl Into<String>, ) -> Self
A request that is not yet confirmed.
Sourcepub fn about(self, key: OccurrenceKey) -> Self
pub fn about(self, key: OccurrenceKey) -> Self
Name the occurrence the action is about.
Trait Implementations§
Source§impl Clone for LifecycleRequest
impl Clone for LifecycleRequest
Source§impl Debug for LifecycleRequest
impl Debug for LifecycleRequest
impl Eq for LifecycleRequest
Source§impl PartialEq for LifecycleRequest
impl PartialEq for LifecycleRequest
impl StructuralPartialEq for LifecycleRequest
Auto Trait Implementations§
impl Freeze for LifecycleRequest
impl RefUnwindSafe for LifecycleRequest
impl Send for LifecycleRequest
impl Sync for LifecycleRequest
impl Unpin for LifecycleRequest
impl UnsafeUnpin for LifecycleRequest
impl UnwindSafe for LifecycleRequest
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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