pub struct ResourceValues<R> {
pub resource: R,
pub values: HashMap<ResourcePropertyValueSelector, ResourceValue>,
}Fields§
§resource: R§values: HashMap<ResourcePropertyValueSelector, ResourceValue>Implementations§
Source§impl<R> ResourceValues<R>
impl<R> ResourceValues<R>
pub fn empty(resource: R) -> Self
pub fn new( resource: R, values: HashMap<ResourcePropertyValueSelector, ResourceValue>, ) -> Self
pub fn with<T>(self, resource: T) -> ResourceValues<T>
Trait Implementations§
Source§impl<R: Clone> Clone for ResourceValues<R>
impl<R: Clone> Clone for ResourceValues<R>
Source§fn clone(&self) -> ResourceValues<R>
fn clone(&self) -> ResourceValues<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Debug> Debug for ResourceValues<R>
impl<R: Debug> Debug for ResourceValues<R>
Source§impl<'de, R> Deserialize<'de> for ResourceValues<R>where
R: Deserialize<'de>,
impl<'de, R> Deserialize<'de> for ResourceValues<R>where
R: Deserialize<'de>,
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
Auto Trait Implementations§
impl<R> Freeze for ResourceValues<R>where
R: Freeze,
impl<R> RefUnwindSafe for ResourceValues<R>where
R: RefUnwindSafe,
impl<R> Send for ResourceValues<R>where
R: Send,
impl<R> Sync for ResourceValues<R>where
R: Sync,
impl<R> Unpin for ResourceValues<R>where
R: Unpin,
impl<R> UnwindSafe for ResourceValues<R>where
R: UnwindSafe,
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