pub struct LeaseSchema {
pub lease_token: Option<EventPair>,
pub lease_name: Option<String>,
pub dependencies: Option<Vec<LeaseDependency>>,
pub should_return_pending_lease: Option<bool>,
}Expand description
Passed to Topology.Lease.
Fields§
§lease_token: Option<EventPair>§lease_name: Option<String>§dependencies: Option<Vec<LeaseDependency>>§should_return_pending_lease: Option<bool>Trait Implementations§
Source§impl Debug for LeaseSchema
impl Debug for LeaseSchema
Source§impl Default for LeaseSchema
impl Default for LeaseSchema
Source§fn default() -> LeaseSchema
fn default() -> LeaseSchema
Returns the “default value” for a type. Read more
Source§impl<___E> Encode<LeaseSchema<'static>, ___E> for LeaseSchemawhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<LeaseSchema<'static>, ___E> for LeaseSchemawhere
___E: Encoder + ?Sized + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<LeaseSchema<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<LeaseSchema<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<LeaseSchema<'de>> for LeaseSchema
impl<'de> FromWire<LeaseSchema<'de>> for LeaseSchema
Source§fn from_wire(wire_: LeaseSchema<'de>) -> Self
fn from_wire(wire_: LeaseSchema<'de>) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl PartialEq for LeaseSchema
impl PartialEq for LeaseSchema
impl StructuralPartialEq for LeaseSchema
Auto Trait Implementations§
impl Freeze for LeaseSchema
impl RefUnwindSafe for LeaseSchema
impl Send for LeaseSchema
impl Sync for LeaseSchema
impl Unpin for LeaseSchema
impl UnwindSafe for LeaseSchema
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
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]