pub struct OwnerPromotionJournal {
pub promotion_id: OwnerPromotionId,
pub target: StoreDeviceRegistrationRef,
pub state: OwnerPromotionJournalState,
}Fields§
§promotion_id: OwnerPromotionId§target: StoreDeviceRegistrationRef§state: OwnerPromotionJournalStateImplementations§
Source§impl OwnerPromotionJournal
impl OwnerPromotionJournal
pub fn promotion_id(&self) -> OwnerPromotionId
pub fn target_state_key(&self) -> Result<String, OwnerPromotionJournalError>
pub fn validate_id( &self, expected: OwnerPromotionId, ) -> Result<(), OwnerPromotionJournalError>
pub fn validate_target_key( &self, expected: &str, ) -> Result<(), OwnerPromotionJournalError>
pub fn into_predecessor( self, ) -> Result<(OwnerPromotionJournalPredecessor, OwnerPromotionJournalState), OwnerPromotionJournalError>
pub fn validate_begin(&self) -> Result<(), OwnerPromotionJournalError>
pub fn validate_acceptance_begin( &self, ) -> Result<(), OwnerPromotionJournalError>
pub fn validate_transition( &self, next: &OwnerPromotionJournal, ) -> Result<(), OwnerPromotionJournalError>
pub fn validate_failed_attempt_replacement( &self, replacement: &OwnerPromotionJournal, ) -> Result<(), OwnerPromotionJournalError>
Trait Implementations§
Source§impl Clone for OwnerPromotionJournal
impl Clone for OwnerPromotionJournal
Source§fn clone(&self) -> OwnerPromotionJournal
fn clone(&self) -> OwnerPromotionJournal
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 OwnerPromotionJournal
impl Debug for OwnerPromotionJournal
Source§impl<'de> Deserialize<'de> for OwnerPromotionJournal
impl<'de> Deserialize<'de> for OwnerPromotionJournal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for OwnerPromotionJournal
impl RefUnwindSafe for OwnerPromotionJournal
impl Send for OwnerPromotionJournal
impl Sync for OwnerPromotionJournal
impl Unpin for OwnerPromotionJournal
impl UnsafeUnpin for OwnerPromotionJournal
impl UnwindSafe for OwnerPromotionJournal
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