pub struct LeaseQuery {
pub session: Option<SessionKey>,
pub state: Option<LeaseState>,
}Expand description
Query string of GET /leases. Each filter is optional; an empty query lists every lease.
Fields§
§session: Option<SessionKey>Only leases held by this session.
state: Option<LeaseState>Only leases in this state.
Trait Implementations§
Source§impl Clone for LeaseQuery
impl Clone for LeaseQuery
Source§impl Debug for LeaseQuery
impl Debug for LeaseQuery
Source§impl Default for LeaseQuery
impl Default for LeaseQuery
Source§impl<'de> Deserialize<'de> for LeaseQuery
impl<'de> Deserialize<'de> for LeaseQuery
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 LeaseQuery
Source§impl PartialEq for LeaseQuery
impl PartialEq for LeaseQuery
Source§impl Serialize for LeaseQuery
impl Serialize for LeaseQuery
impl StructuralPartialEq for LeaseQuery
Auto Trait Implementations§
impl Forget for LeaseQuery
impl Freeze for LeaseQuery
impl RefUnwindSafe for LeaseQuery
impl Send for LeaseQuery
impl Sync for LeaseQuery
impl Unpin for LeaseQuery
impl UnsafeUnpin for LeaseQuery
impl UnwindSafe for LeaseQuery
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