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§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 Forget for LeaseResponse
impl Freeze for LeaseResponse
impl Move 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