pub struct PromotionV1 {Show 20 fields
pub v: u32,
pub promotion_id: TeamId,
pub scope: TeamScopeV1,
pub object_id: TeamId,
pub object_digest: RecordDigest,
pub from_authority: AuthorityState,
pub to_authority: PromotionAuthorityState,
pub requested_by: MemberId,
pub requested_at: TeamTimestampV1,
pub policy_digest: RecordDigest,
pub decided_by: Option<MemberId>,
pub decided_at: Option<TeamTimestampV1>,
pub decision_reason_code: Option<ReasonCode>,
pub decision_digest: Option<RecordDigest>,
pub state: PromotionState,
pub valid_from: Option<TeamTimestampV1>,
pub valid_until: Option<TeamTimestampV1>,
pub version: u64,
pub parent_digest: Option<RecordDigest>,
pub idempotency_key: IdempotencyKey,
}Fields§
§v: u32§promotion_id: TeamId§scope: TeamScopeV1§object_id: TeamId§object_digest: RecordDigest§requested_by: MemberId§requested_at: TeamTimestampV1§policy_digest: RecordDigest§decided_by: Option<MemberId>§decided_at: Option<TeamTimestampV1>§decision_reason_code: Option<ReasonCode>§decision_digest: Option<RecordDigest>§state: PromotionState§valid_from: Option<TeamTimestampV1>§valid_until: Option<TeamTimestampV1>§version: u64§parent_digest: Option<RecordDigest>§idempotency_key: IdempotencyKeyImplementations§
Source§impl PromotionV1
impl PromotionV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for PromotionV1
impl Clone for PromotionV1
Source§impl Debug for PromotionV1
impl Debug for PromotionV1
Source§impl<'de> Deserialize<'de> for PromotionV1
impl<'de> Deserialize<'de> for PromotionV1
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PromotionV1
Source§impl PartialEq for PromotionV1
impl PartialEq for PromotionV1
Source§impl Serialize for PromotionV1
impl Serialize for PromotionV1
impl StructuralPartialEq for PromotionV1
Auto Trait Implementations§
impl Freeze for PromotionV1
impl RefUnwindSafe for PromotionV1
impl Send for PromotionV1
impl Sync for PromotionV1
impl Unpin for PromotionV1
impl UnsafeUnpin for PromotionV1
impl UnwindSafe for PromotionV1
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