pub struct ProvisionResourceRequest {
pub version: u32,
pub type: Type,
pub config: Value,
pub custom: Value,
}
Expand description
Return this struct as a resource config to make Shuttle provision it
Fields§
§version: u32
The version of the config+data schema for this Shuttle resource
type: Type
The type of this resource
config: Value
The config used when creating this resource.
Use Self::version
and Self::r#type
to know how to parse this data.
custom: Value
Arbitrary extra data to include in this resource
Implementations§
Trait Implementations§
source§impl Clone for ProvisionResourceRequest
impl Clone for ProvisionResourceRequest
source§fn clone(&self) -> ProvisionResourceRequest
fn clone(&self) -> ProvisionResourceRequest
Returns a copy 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 Debug for ProvisionResourceRequest
impl Debug for ProvisionResourceRequest
source§impl<'de> Deserialize<'de> for ProvisionResourceRequest
impl<'de> Deserialize<'de> for ProvisionResourceRequest
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProvisionResourceRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProvisionResourceRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ProvisionResourceRequest
impl Serialize for ProvisionResourceRequest
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ProvisionResourceRequest
impl RefUnwindSafe for ProvisionResourceRequest
impl Send for ProvisionResourceRequest
impl Sync for ProvisionResourceRequest
impl Unpin for ProvisionResourceRequest
impl UnwindSafe for ProvisionResourceRequest
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