pub struct ComponentUpdateParams {
pub avatar_url: Option<String>,
pub description: Option<String>,
pub documentation_link: Option<String>,
pub is_archived: Option<bool>,
pub name: Option<String>,
pub public: Option<bool>,
pub repo_link: Option<String>,
}
Expand description
ComponentUpdateParams
JSON schema
{
"type": "object",
"properties": {
"avatar_url": {
"description": "Avatar URL of the component.",
"type": "string"
},
"description": {
"description": "Description of the component.",
"type": "string"
},
"documentation_link": {
"description": "Link to the documentation of the component.",
"type": "string",
"format": "url"
},
"is_archived": {
"description": "Whether the component is archived or not.",
"type": "boolean"
},
"name": {
"description": "Name of the component.",
"type": "string"
},
"public": {
"description": "Whether the component is public or not.",
"type": "boolean"
},
"repo_link": {
"description": "Link to the repository of the component.",
"type": "string",
"format": "url"
}
}
}
Fields§
§avatar_url: Option<String>
Avatar URL of the component.
description: Option<String>
Description of the component.
documentation_link: Option<String>
Link to the documentation of the component.
is_archived: Option<bool>
Whether the component is archived or not.
name: Option<String>
Name of the component.
public: Option<bool>
Whether the component is public or not.
repo_link: Option<String>
Link to the repository of the component.
Implementations§
Source§impl ComponentUpdateParams
impl ComponentUpdateParams
pub fn builder() -> ComponentUpdateParams
Trait Implementations§
Source§impl Clone for ComponentUpdateParams
impl Clone for ComponentUpdateParams
Source§fn clone(&self) -> ComponentUpdateParams
fn clone(&self) -> ComponentUpdateParams
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 ComponentUpdateParams
impl Debug for ComponentUpdateParams
Source§impl Default for ComponentUpdateParams
impl Default for ComponentUpdateParams
Source§impl<'de> Deserialize<'de> for ComponentUpdateParams
impl<'de> Deserialize<'de> for ComponentUpdateParams
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<&ComponentUpdateParams> for ComponentUpdateParams
impl From<&ComponentUpdateParams> for ComponentUpdateParams
Source§fn from(value: &ComponentUpdateParams) -> Self
fn from(value: &ComponentUpdateParams) -> Self
Converts to this type from the input type.
Source§impl From<ComponentUpdateParams> for ComponentUpdateParams
impl From<ComponentUpdateParams> for ComponentUpdateParams
Source§fn from(value: ComponentUpdateParams) -> Self
fn from(value: ComponentUpdateParams) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ComponentUpdateParams
impl JsonSchema for ComponentUpdateParams
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 Serialize for ComponentUpdateParams
impl Serialize for ComponentUpdateParams
Source§impl TryFrom<ComponentUpdateParams> for ComponentUpdateParams
impl TryFrom<ComponentUpdateParams> for ComponentUpdateParams
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ComponentUpdateParams) -> Result<Self, ConversionError>
fn try_from(value: ComponentUpdateParams) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComponentUpdateParams
impl RefUnwindSafe for ComponentUpdateParams
impl Send for ComponentUpdateParams
impl Sync for ComponentUpdateParams
impl Unpin for ComponentUpdateParams
impl UnwindSafe for ComponentUpdateParams
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