pub struct ComponentVersion {
pub changelog: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub dynamic_fields: Vec<ConfigurationField>,
pub object: Option<String>,
pub version: Option<String>,
pub wasm_url: Option<String>,
pub wit_world_version: Option<String>,
}
Expand description
Version of a component
JSON schema
{
"description": "Version of a component",
"type": "object",
"properties": {
"changelog": {
"description": "Changelog of the component version",
"type": "string"
},
"created_at": {
"description": "Time at which the component version item was created",
"readOnly": true,
"examples": [
"2022-03-01T00:00:00Z"
],
"type": "string",
"format": "date-time"
},
"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_world_version": {
"description": "Wit world version of the component",
"type": "string"
}
}
}
Fields§
§changelog: Option<String>
Changelog of the component version
created_at: Option<DateTime<Utc>>
Time at which the component version item was created
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: Option<String>
Version of the component
wasm_url: Option<String>
URL of the component
wit_world_version: Option<String>
Wit world version of the component
Implementations§
Source§impl ComponentVersion
impl ComponentVersion
pub fn builder() -> ComponentVersion
Trait Implementations§
Source§impl Clone for ComponentVersion
impl Clone for ComponentVersion
Source§fn clone(&self) -> ComponentVersion
fn clone(&self) -> ComponentVersion
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 ComponentVersion
impl Debug for ComponentVersion
Source§impl Default for ComponentVersion
impl Default for ComponentVersion
Source§impl<'de> Deserialize<'de> for ComponentVersion
impl<'de> Deserialize<'de> for ComponentVersion
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<&ComponentVersion> for ComponentVersion
impl From<&ComponentVersion> for ComponentVersion
Source§fn from(value: &ComponentVersion) -> Self
fn from(value: &ComponentVersion) -> Self
Converts to this type from the input type.
Source§impl From<ComponentVersion> for ComponentVersion
impl From<ComponentVersion> for ComponentVersion
Source§fn from(value: ComponentVersion) -> Self
fn from(value: ComponentVersion) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ComponentVersion
impl JsonSchema for ComponentVersion
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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 Serialize for ComponentVersion
impl Serialize for ComponentVersion
Source§impl TryFrom<ComponentVersion> for ComponentVersion
impl TryFrom<ComponentVersion> for ComponentVersion
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ComponentVersion) -> Result<Self, ConversionError>
fn try_from(value: ComponentVersion) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComponentVersion
impl RefUnwindSafe for ComponentVersion
impl Send for ComponentVersion
impl Sync for ComponentVersion
impl Unpin for ComponentVersion
impl UnwindSafe for ComponentVersion
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