pub struct LeaseInfo {
pub attempt: i32,
pub command_id: String,
pub envelope: Envelope,
pub lease_expires_at: DateTime<Utc>,
pub lease_id: String,
}Expand description
Lease information
JSON schema
{
"description": "Lease information",
"type": "object",
"required": [
"attempt",
"commandId",
"envelope",
"leaseExpiresAt",
"leaseId"
],
"properties": {
"attempt": {
"description": "Attempt number",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"commandId": {
"description": "Command identifier",
"type": "string"
},
"envelope": {
"$ref": "#/components/schemas/Envelope"
},
"leaseExpiresAt": {
"description": "When lease expires",
"type": "string",
"format": "date-time"
},
"leaseId": {
"description": "Unique lease identifier",
"type": "string"
}
}
}Fields§
§attempt: i32Attempt number
command_id: StringCommand identifier
envelope: Envelope§lease_expires_at: DateTime<Utc>When lease expires
lease_id: StringUnique lease identifier
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LeaseInfo
impl<'de> Deserialize<'de> for LeaseInfo
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 LeaseInfo
impl RefUnwindSafe for LeaseInfo
impl Send for LeaseInfo
impl Sync for LeaseInfo
impl Unpin for LeaseInfo
impl UnsafeUnpin for LeaseInfo
impl UnwindSafe for LeaseInfo
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