pub enum AiHeartbeatData {
Variant0 {
backend: AiHeartbeatDataVariant0Backend,
region: String,
status: AiHeartbeatStatus,
},
Variant1 {
backend: AiHeartbeatDataVariant1Backend,
location: String,
project: String,
status: AiHeartbeatStatus,
},
Variant2 {
account_name: String,
backend: AiHeartbeatDataVariant2Backend,
endpoint: Option<String>,
location: Option<String>,
resource_group: Option<String>,
status: AiHeartbeatStatus,
},
Variant3 {
backend: AiHeartbeatDataVariant3Backend,
provider: String,
status: AiHeartbeatStatus,
},
}Expand description
AiHeartbeatData
JSON schema
{
"oneOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/AwsBedrockAiHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"awsBedrock"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/GcpVertexAiHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"gcpVertex"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/AzureFoundryAiHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"azureFoundry"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/ExternalAiHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"external"
]
}
}
}
]
}
]
}Variants§
Variant0
Variant1
Variant2
Variant3
Fields
§
backend: AiHeartbeatDataVariant3Backend§
provider: StringThe BYO-key provider serving this binding (e.g. “openai”). Used on the Local platform, where the app brings its own provider key instead of an ambient cloud.
§
status: AiHeartbeatStatusTrait Implementations§
Source§impl Clone for AiHeartbeatData
impl Clone for AiHeartbeatData
Source§fn clone(&self) -> AiHeartbeatData
fn clone(&self) -> AiHeartbeatData
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 AiHeartbeatData
impl Debug for AiHeartbeatData
Source§impl<'de> Deserialize<'de> for AiHeartbeatData
impl<'de> Deserialize<'de> for AiHeartbeatData
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<&AiHeartbeatData> for AiHeartbeatData
impl From<&AiHeartbeatData> for AiHeartbeatData
Source§fn from(value: &AiHeartbeatData) -> Self
fn from(value: &AiHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl From<AiHeartbeatData> for ResourceHeartbeatData
impl From<AiHeartbeatData> for ResourceHeartbeatData
Source§fn from(value: AiHeartbeatData) -> Self
fn from(value: AiHeartbeatData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AiHeartbeatData
impl RefUnwindSafe for AiHeartbeatData
impl Send for AiHeartbeatData
impl Sync for AiHeartbeatData
impl Unpin for AiHeartbeatData
impl UnsafeUnpin for AiHeartbeatData
impl UnwindSafe for AiHeartbeatData
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