pub struct ResourceArgs {
pub name: Option<String>,
pub properties: Option<Vec<NodeProperty2>>,
pub offers: Option<Vec<Offer>>,
pub bus_info: Option<BusInfo>,
}Expand description
Arguments for providing a resource.
Fields§
§name: Option<String>§properties: Option<Vec<NodeProperty2>>§offers: Option<Vec<Offer>>§bus_info: Option<BusInfo>Trait Implementations§
Source§impl Clone for ResourceArgs
impl Clone for ResourceArgs
Source§fn clone(&self) -> ResourceArgs
fn clone(&self) -> ResourceArgs
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 ResourceArgs
impl Debug for ResourceArgs
Source§impl Default for ResourceArgs
impl Default for ResourceArgs
Source§fn default() -> ResourceArgs
fn default() -> ResourceArgs
Returns the “default value” for a type. Read more
Source§impl<___E> Encode<ResourceArgs<'static>, ___E> for ResourceArgswhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<ResourceArgs<'static>, ___E> for ResourceArgswhere
___E: Encoder + ?Sized + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ResourceArgs<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ResourceArgs<'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<ResourceArgs<'de>> for ResourceArgs
impl<'de> FromWire<ResourceArgs<'de>> for ResourceArgs
Source§fn from_wire(wire_: ResourceArgs<'de>) -> Self
fn from_wire(wire_: ResourceArgs<'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 ResourceArgs
impl PartialEq for ResourceArgs
Source§fn eq(&self, other: &ResourceArgs) -> bool
fn eq(&self, other: &ResourceArgs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceArgs
Auto Trait Implementations§
impl Freeze for ResourceArgs
impl RefUnwindSafe for ResourceArgs
impl Send for ResourceArgs
impl Sync for ResourceArgs
impl Unpin for ResourceArgs
impl UnsafeUnpin for ResourceArgs
impl UnwindSafe for ResourceArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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]