pub struct DeploymentManifest {Show 18 fields
pub agent: AgentConfig,
pub build: BuildConfig,
pub scaling: ScalingPolicy,
pub health: HealthCheckConfig,
pub strategy: DeploymentStrategyConfig,
pub services: Vec<ServiceBinding>,
pub secrets: Vec<SecretRef>,
pub env: HashMap<String, EnvVarSpec>,
pub telemetry: Option<TelemetryConfig>,
pub auth: Option<AgentAuthConfig>,
pub guardrails: Option<GuardrailConfig>,
pub realtime: Option<RealtimeConfig>,
pub a2a: Option<A2aConfig>,
pub graph: Option<GraphConfig>,
pub plugins: Vec<PluginRef>,
pub skills: Option<SkillConfig>,
pub interaction: Option<InteractionConfig>,
pub source: Option<SourceInfo>,
}Fields§
§agent: AgentConfig§build: BuildConfig§scaling: ScalingPolicy§health: HealthCheckConfig§strategy: DeploymentStrategyConfig§services: Vec<ServiceBinding>§secrets: Vec<SecretRef>§env: HashMap<String, EnvVarSpec>§telemetry: Option<TelemetryConfig>§auth: Option<AgentAuthConfig>§guardrails: Option<GuardrailConfig>§realtime: Option<RealtimeConfig>§a2a: Option<A2aConfig>§graph: Option<GraphConfig>§plugins: Vec<PluginRef>§skills: Option<SkillConfig>§interaction: Option<InteractionConfig>§source: Option<SourceInfo>Implementations§
Source§impl DeploymentManifest
impl DeploymentManifest
Sourcepub fn from_path(path: &Path) -> DeployResult<Self>
pub fn from_path(path: &Path) -> DeployResult<Self>
Load a deployment manifest from disk and validate it.
§Example
use adk_deploy::DeploymentManifest;
use std::path::Path;
let manifest = DeploymentManifest::from_path(Path::new("adk-deploy.toml")).unwrap();
assert!(!manifest.agent.binary.is_empty());Sourcepub fn to_toml_string(&self) -> DeployResult<String>
pub fn to_toml_string(&self) -> DeployResult<String>
Serialize the manifest to TOML.
§Example
use adk_deploy::{AgentConfig, DeploymentManifest};
let manifest = DeploymentManifest {
agent: AgentConfig::new("demo", "demo"),
..DeploymentManifest::default()
};
let toml = manifest.to_toml_string().unwrap();
assert!(toml.contains("[agent]"));Sourcepub fn validate(&self) -> DeployResult<()>
pub fn validate(&self) -> DeployResult<()>
Validate manifest semantics before build or push.
Trait Implementations§
Source§impl Clone for DeploymentManifest
impl Clone for DeploymentManifest
Source§fn clone(&self) -> DeploymentManifest
fn clone(&self) -> DeploymentManifest
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 DeploymentManifest
impl Debug for DeploymentManifest
Source§impl Default for DeploymentManifest
impl Default for DeploymentManifest
Source§impl<'de> Deserialize<'de> for DeploymentManifest
impl<'de> Deserialize<'de> for DeploymentManifest
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 PartialEq for DeploymentManifest
impl PartialEq for DeploymentManifest
Source§impl Serialize for DeploymentManifest
impl Serialize for DeploymentManifest
impl Eq for DeploymentManifest
impl StructuralPartialEq for DeploymentManifest
Auto Trait Implementations§
impl Freeze for DeploymentManifest
impl RefUnwindSafe for DeploymentManifest
impl Send for DeploymentManifest
impl Sync for DeploymentManifest
impl Unpin for DeploymentManifest
impl UnsafeUnpin for DeploymentManifest
impl UnwindSafe for DeploymentManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.