pub struct ComponentCreateInput {
pub avatar_url: Option<String>,
pub category: ComponentCreateInputCategory,
pub description: Option<String>,
pub documentation_link: Option<String>,
pub name: String,
pub organization_id: Value,
pub public: Option<bool>,
pub repo_link: Option<String>,
pub slug: Option<String>,
pub subcategory: ComponentCreateInputSubcategory,
}
Expand description
ComponentCreateInput
JSON schema
{
"type": "object",
"required": [
"category",
"name",
"organization_id",
"subcategory"
],
"properties": {
"avatar_url": {
"description": "Avatar URL of the component.",
"type": "string"
},
"category": {
"description": "Category of the component.",
"type": "string",
"enum": [
"data_collection",
"edge_function",
"sdk_gateway",
"endpoint",
"security",
"consent_management",
"identity",
"stitching"
]
},
"description": {
"description": "Description of the component.",
"type": "string"
},
"documentation_link": {
"description": "Link to the documentation of the component.",
"type": "string",
"format": "url"
},
"name": {
"description": "Name of the component.",
"examples": [
"My Component"
],
"type": "string"
},
"public": {
"description": "Whether the created component is public or not.",
"type": "boolean"
},
"repo_link": {
"description": "Link to the repository of the component.",
"type": "string",
"format": "url"
},
"slug": {
"description": "Slug of the component.",
"examples": [
"my-component"
],
"type": "string"
},
"subcategory": {
"description": "Subcategory of the component.",
"type": "string",
"enum": [
"analytics",
"warehouse",
"attribution",
"conversion_api",
"wasm_function",
"server_side_tagging",
"microservice",
"kv_store",
"bot_protection",
"rate_limiting",
"anti_fraud",
"consent_mapping",
"cmp",
"native_cookies",
"unique_id",
"ab_testing",
"web_performance"
]
}
}
}
Fields§
§avatar_url: Option<String>
Avatar URL of the component.
category: ComponentCreateInputCategory
Category of the component.
description: Option<String>
Description of the component.
documentation_link: Option<String>
Link to the documentation of the component.
name: String
Name of the component.
organization_id: Value
§public: Option<bool>
Whether the created component is public or not.
repo_link: Option<String>
Link to the repository of the component.
slug: Option<String>
Slug of the component.
subcategory: ComponentCreateInputSubcategory
Subcategory of the component.
Implementations§
Source§impl ComponentCreateInput
impl ComponentCreateInput
pub fn builder() -> ComponentCreateInput
Trait Implementations§
Source§impl Clone for ComponentCreateInput
impl Clone for ComponentCreateInput
Source§fn clone(&self) -> ComponentCreateInput
fn clone(&self) -> ComponentCreateInput
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 ComponentCreateInput
impl Debug for ComponentCreateInput
Source§impl<'de> Deserialize<'de> for ComponentCreateInput
impl<'de> Deserialize<'de> for ComponentCreateInput
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<&ComponentCreateInput> for ComponentCreateInput
impl From<&ComponentCreateInput> for ComponentCreateInput
Source§fn from(value: &ComponentCreateInput) -> Self
fn from(value: &ComponentCreateInput) -> Self
Converts to this type from the input type.
Source§impl From<ComponentCreateInput> for ComponentCreateInput
impl From<ComponentCreateInput> for ComponentCreateInput
Source§fn from(value: ComponentCreateInput) -> Self
fn from(value: ComponentCreateInput) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ComponentCreateInput
impl JsonSchema for ComponentCreateInput
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 ComponentCreateInput
impl Serialize for ComponentCreateInput
Source§impl TryFrom<ComponentCreateInput> for ComponentCreateInput
impl TryFrom<ComponentCreateInput> for ComponentCreateInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ComponentCreateInput) -> Result<Self, ConversionError>
fn try_from(value: ComponentCreateInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComponentCreateInput
impl RefUnwindSafe for ComponentCreateInput
impl Send for ComponentCreateInput
impl Sync for ComponentCreateInput
impl Unpin for ComponentCreateInput
impl UnwindSafe for ComponentCreateInput
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