pub struct LeaseResponse {
pub leases: Vec<LeaseInfo>,
}Expand description
Response to lease acquisition
JSON schema
{
"description": "Response to lease acquisition",
"type": "object",
"required": [
"leases"
],
"properties": {
"leases": {
"description": "Acquired leases (empty array if none available)",
"type": "array",
"items": {
"$ref": "#/components/schemas/LeaseInfo"
}
}
}
}Fields§
§leases: Vec<LeaseInfo>Acquired leases (empty array if none available)
Implementations§
Source§impl LeaseResponse
impl LeaseResponse
pub fn builder() -> LeaseResponse
Trait Implementations§
Source§impl Clone for LeaseResponse
impl Clone for LeaseResponse
Source§fn clone(&self) -> LeaseResponse
fn clone(&self) -> LeaseResponse
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 LeaseResponse
impl Debug for LeaseResponse
Source§impl<'de> Deserialize<'de> for LeaseResponse
impl<'de> Deserialize<'de> for LeaseResponse
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 From<&LeaseResponse> for LeaseResponse
impl From<&LeaseResponse> for LeaseResponse
Source§fn from(value: &LeaseResponse) -> Self
fn from(value: &LeaseResponse) -> Self
Converts to this type from the input type.
Source§impl From<LeaseResponse> for LeaseResponse
impl From<LeaseResponse> for LeaseResponse
Source§fn from(value: LeaseResponse) -> Self
fn from(value: LeaseResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for LeaseResponse
impl Serialize for LeaseResponse
Source§impl TryFrom<LeaseResponse> for LeaseResponse
impl TryFrom<LeaseResponse> for LeaseResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LeaseResponse) -> Result<Self, ConversionError>
fn try_from(value: LeaseResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LeaseResponse
impl RefUnwindSafe for LeaseResponse
impl Send for LeaseResponse
impl Sync for LeaseResponse
impl Unpin for LeaseResponse
impl UnsafeUnpin for LeaseResponse
impl UnwindSafe for LeaseResponse
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