pub struct LeaseDependency {
pub requires_token: Option<Event>,
pub requires_level: Option<u8>,
pub requires_level_by_preference: Option<Vec<u8>>,
}Fields§
§requires_token: Option<Event>§requires_level: Option<u8>§requires_level_by_preference: Option<Vec<u8>>Trait Implementations§
Source§impl CompatFrom<LeaseDependency> for LeaseDependency
impl CompatFrom<LeaseDependency> for LeaseDependency
Source§fn compat_from(value: LeaseDependency) -> Self
fn compat_from(value: LeaseDependency) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<LeaseDependency> for LeaseDependency
impl CompatFrom<LeaseDependency> for LeaseDependency
Source§fn compat_from(value: LeaseDependency) -> Self
fn compat_from(value: LeaseDependency) -> Self
Converts
value into a value of this type.Source§impl Debug for LeaseDependency
impl Debug for LeaseDependency
Source§impl Default for LeaseDependency
impl Default for LeaseDependency
Source§fn default() -> LeaseDependency
fn default() -> LeaseDependency
Returns the “default value” for a type. Read more
Source§impl<___E> Encode<LeaseDependency<'static>, ___E> for LeaseDependencywhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<LeaseDependency<'static>, ___E> for LeaseDependencywhere
___E: Encoder + ?Sized + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<LeaseDependency<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<LeaseDependency<'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<LeaseDependency<'de>> for LeaseDependency
impl<'de> FromWire<LeaseDependency<'de>> for LeaseDependency
Source§fn from_wire(wire_: LeaseDependency<'de>) -> Self
fn from_wire(wire_: LeaseDependency<'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 LeaseDependency
impl PartialEq for LeaseDependency
impl StructuralPartialEq for LeaseDependency
Auto Trait Implementations§
impl Freeze for LeaseDependency
impl RefUnwindSafe for LeaseDependency
impl Send for LeaseDependency
impl Sync for LeaseDependency
impl Unpin for LeaseDependency
impl UnsafeUnpin for LeaseDependency
impl UnwindSafe for LeaseDependency
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§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]