pub struct ResourceReservation {
pub id: String,
pub tenant_id: TenantId,
pub scope: ReservationScope,
pub scope_id: String,
pub resource_kind: String,
pub amount: String,
pub policy_version: String,
pub expires_at: DateTime<Utc>,
pub fencing_token: i64,
pub provider_reservation_id: Option<String>,
pub state: ReservationState,
}Expand description
Mirror of a product-owned fenced reservation.
Fields§
§id: StringStable identifier of this record.
tenant_id: TenantIdTenant that owns this record.
scope: ReservationScopeScope kind.
scope_id: StringScope identity.
resource_kind: StringKind of resource reserved.
amount: StringReserved amount as a decimal string.
policy_version: StringProduct policy version that granted it.
expires_at: DateTime<Utc>When the record stops being valid.
fencing_token: i64Fence the reservation was taken under.
provider_reservation_id: Option<String>Provider-side reservation id.
state: ReservationStateCurrent lifecycle state.
Trait Implementations§
Source§impl Clone for ResourceReservation
impl Clone for ResourceReservation
Source§fn clone(&self) -> ResourceReservation
fn clone(&self) -> ResourceReservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResourceReservation
impl Debug for ResourceReservation
Source§impl<'de> Deserialize<'de> for ResourceReservation
impl<'de> Deserialize<'de> for ResourceReservation
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
Source§impl PartialEq for ResourceReservation
impl PartialEq for ResourceReservation
Source§impl Serialize for ResourceReservation
impl Serialize for ResourceReservation
impl StructuralPartialEq for ResourceReservation
Auto Trait Implementations§
impl Freeze for ResourceReservation
impl RefUnwindSafe for ResourceReservation
impl Send for ResourceReservation
impl Sync for ResourceReservation
impl Unpin for ResourceReservation
impl UnsafeUnpin for ResourceReservation
impl UnwindSafe for ResourceReservation
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