pub struct SeatAllocationV1 {Show 17 fields
pub v: u32,
pub allocation_id: TeamId,
pub scope: SeatValueScopeV1,
pub member_id: MemberId,
pub membership_digest: RecordDigest,
pub entitlement_digest: RecordDigest,
pub limit_decision_digest: RecordDigest,
pub state: SeatAllocationStateV1,
pub allocated_at: TeamTimestampV1,
pub allocated_by: MemberId,
pub ended_at: Option<TeamTimestampV1>,
pub ended_by: Option<MemberId>,
pub reason_code: Option<ReasonCode>,
pub version: u64,
pub parent_digest: Option<RecordDigest>,
pub signature_envelope_digest: RecordDigest,
pub idempotency_key: IdempotencyKey,
}Fields§
§v: u32§allocation_id: TeamId§scope: SeatValueScopeV1§member_id: MemberId§membership_digest: RecordDigest§entitlement_digest: RecordDigest§limit_decision_digest: RecordDigest§state: SeatAllocationStateV1§allocated_at: TeamTimestampV1§allocated_by: MemberId§ended_at: Option<TeamTimestampV1>§ended_by: Option<MemberId>§reason_code: Option<ReasonCode>§version: u64§parent_digest: Option<RecordDigest>§signature_envelope_digest: RecordDigest§idempotency_key: IdempotencyKeyImplementations§
Source§impl SeatAllocationV1
impl SeatAllocationV1
pub fn validate(&self) -> Result<(), ValidationError>
Source§impl SeatAllocationV1
impl SeatAllocationV1
pub fn validate_creation_binding( &self, decision: &SeatLimitDecisionV1, computed_decision_digest: &RecordDigest, ) -> Result<(), ValidationError>
pub fn validate_successor( &self, previous: &Self, previous_digest: &RecordDigest, ) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for SeatAllocationV1
impl Clone for SeatAllocationV1
Source§impl Debug for SeatAllocationV1
impl Debug for SeatAllocationV1
Source§impl<'de> Deserialize<'de> for SeatAllocationV1
impl<'de> Deserialize<'de> for SeatAllocationV1
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SeatAllocationV1
Source§impl PartialEq for SeatAllocationV1
impl PartialEq for SeatAllocationV1
Source§impl Serialize for SeatAllocationV1
impl Serialize for SeatAllocationV1
impl StructuralPartialEq for SeatAllocationV1
Auto Trait Implementations§
impl Forget for SeatAllocationV1
impl Freeze for SeatAllocationV1
impl Move for SeatAllocationV1
impl RefUnwindSafe for SeatAllocationV1
impl Send for SeatAllocationV1
impl Sync for SeatAllocationV1
impl Unpin for SeatAllocationV1
impl UnsafeUnpin for SeatAllocationV1
impl UnwindSafe for SeatAllocationV1
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