pub struct ComponentVersionCreateInput {
pub changelog: Option<String>,
pub dynamic_fields: Vec<ConfigurationField>,
pub object: Option<String>,
pub version: String,
pub wasm_url: String,
pub wit_version: String,
}
Expand description
ComponentVersionCreateInput
JSON schema
{
"type": "object",
"required": [
"version",
"wasm_url",
"wit_version"
],
"properties": {
"changelog": {
"description": "Changelog of the component version",
"type": "string"
},
"dynamic_fields": {
"description": "List of configuration fields",
"type": "array",
"items": {
"$ref": "#/components/schemas/ConfigurationField"
}
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value",
"readOnly": true,
"examples": [
"component_version_item"
],
"type": "string"
},
"version": {
"description": "Version of the component",
"type": "string"
},
"wasm_url": {
"description": "URL of the component",
"type": "string"
},
"wit_version": {
"description": "WIT version of the component",
"type": "string"
}
}
}
Fields§
§changelog: Option<String>
Changelog of the component version
dynamic_fields: Vec<ConfigurationField>
List of configuration fields
object: Option<String>
String representing the object’s type. Objects of the same type share the same value
version: String
Version of the component
wasm_url: String
URL of the component
wit_version: String
WIT version of the component
Implementations§
Trait Implementations§
Source§impl Clone for ComponentVersionCreateInput
impl Clone for ComponentVersionCreateInput
Source§fn clone(&self) -> ComponentVersionCreateInput
fn clone(&self) -> ComponentVersionCreateInput
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 Debug for ComponentVersionCreateInput
impl Debug for ComponentVersionCreateInput
Source§impl<'de> Deserialize<'de> for ComponentVersionCreateInput
impl<'de> Deserialize<'de> for ComponentVersionCreateInput
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
Source§impl From<&ComponentVersionCreateInput> for ComponentVersionCreateInput
impl From<&ComponentVersionCreateInput> for ComponentVersionCreateInput
Source§fn from(value: &ComponentVersionCreateInput) -> Self
fn from(value: &ComponentVersionCreateInput) -> Self
Converts to this type from the input type.
Source§impl From<ComponentVersionCreateInput> for ComponentVersionCreateInput
impl From<ComponentVersionCreateInput> for ComponentVersionCreateInput
Source§fn from(value: ComponentVersionCreateInput) -> Self
fn from(value: ComponentVersionCreateInput) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ComponentVersionCreateInput
impl JsonSchema for ComponentVersionCreateInput
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl TryFrom<ComponentVersionCreateInput> for ComponentVersionCreateInput
impl TryFrom<ComponentVersionCreateInput> for ComponentVersionCreateInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ComponentVersionCreateInput) -> Result<Self, ConversionError>
fn try_from(value: ComponentVersionCreateInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComponentVersionCreateInput
impl RefUnwindSafe for ComponentVersionCreateInput
impl Send for ComponentVersionCreateInput
impl Sync for ComponentVersionCreateInput
impl Unpin for ComponentVersionCreateInput
impl UnwindSafe for ComponentVersionCreateInput
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