pub struct BusLeaseV1 {
pub schema: String,
pub granted: bool,
pub lease_id: Option<String>,
pub fencing_token: Option<u64>,
pub expires_at: Option<UtcTimestamp>,
pub holder: Option<BusLeaseHolderV1>,
pub server_time: UtcTimestamp,
}Expand description
Lease decision. Granted: lease_id, fencing_token (strictly increasing
per resource) and expires_at. Refused: holder. 1.9 erratum: a renewal
keeps lease_id and fencing_token and only moves expires_at; a new
token comes only with a new grant.
Fields§
§schema: String§granted: bool§lease_id: Option<String>§fencing_token: Option<u64>§expires_at: Option<UtcTimestamp>§holder: Option<BusLeaseHolderV1>§server_time: UtcTimestampImplementations§
Source§impl BusLeaseV1
impl BusLeaseV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for BusLeaseV1
impl Clone for BusLeaseV1
Source§impl Debug for BusLeaseV1
impl Debug for BusLeaseV1
Source§impl<'de> Deserialize<'de> for BusLeaseV1
impl<'de> Deserialize<'de> for BusLeaseV1
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
impl Eq for BusLeaseV1
Source§impl PartialEq for BusLeaseV1
impl PartialEq for BusLeaseV1
Source§impl Serialize for BusLeaseV1
impl Serialize for BusLeaseV1
impl StructuralPartialEq for BusLeaseV1
Auto Trait Implementations§
impl Forget for BusLeaseV1
impl Freeze for BusLeaseV1
impl Move for BusLeaseV1
impl RefUnwindSafe for BusLeaseV1
impl Send for BusLeaseV1where
RawVecInner: Send,
impl Sync for BusLeaseV1where
RawVecInner: Sync,
impl Unpin for BusLeaseV1
impl UnsafeUnpin for BusLeaseV1
impl UnwindSafe for BusLeaseV1where
RawVecInner: UnwindSafe,
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