pub struct Integration {
pub config: Option<Value>,
pub enabled: bool,
pub health: IntegrationHealth,
pub id: String,
pub metadata: Option<HashMap>,
pub name: LocalizedString,
pub org_id: String,
pub provider_type: ProviderType,
}Expand description
Credential/Auth for a specific cloud instance.
Example: Shelly account "A", HomeAssistant instance "Home".JSON schema
{
"description": "Credential/Auth for a specific cloud instance.\n\nExample: Shelly account \"A\", HomeAssistant instance \"Home\".",
"type": "object",
"required": [
"enabled",
"health",
"id",
"name",
"org_id",
"provider_type"
],
"properties": {
"config": {
"description": "Provider-specific non-secret configuration (JSON)."
},
"enabled": {
"description": "User-controlled flag: if false, this integration will not be used for actions/ops.",
"type": "boolean"
},
"health": {
"$ref": "#/components/schemas/IntegrationHealth"
},
"id": {
"description": "Unique identifier (ULID).",
"type": "string"
},
"metadata": {
"oneOf": [
{
"type": "null"
},
{
"oneOf": [
{
"$ref": "#/components/schemas/HashMap"
}
]
}
]
},
"name": {
"$ref": "#/components/schemas/LocalizedString"
},
"org_id": {
"description": "Organization that owns this integration.",
"type": "string"
},
"provider_type": {
"$ref": "#/components/schemas/ProviderType"
}
}
}Fields§
§config: Option<Value>Provider-specific non-secret configuration (JSON).
enabled: boolUser-controlled flag: if false, this integration will not be used for actions/ops.
health: IntegrationHealth§id: StringUnique identifier (ULID).
metadata: Option<HashMap>§name: LocalizedString§org_id: StringOrganization that owns this integration.
provider_type: ProviderTypeTrait Implementations§
Source§impl Clone for Integration
impl Clone for Integration
Source§fn clone(&self) -> Integration
fn clone(&self) -> Integration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Integration
impl Debug for Integration
Source§impl<'de> Deserialize<'de> for Integration
impl<'de> Deserialize<'de> for Integration
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
Auto Trait Implementations§
impl Freeze for Integration
impl RefUnwindSafe for Integration
impl Send for Integration
impl Sync for Integration
impl Unpin for Integration
impl UnsafeUnpin for Integration
impl UnwindSafe for Integration
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