pub struct RuntimeManifest {
pub schema_version: u32,
pub project_id: String,
pub providers: Vec<ProviderRequirement>,
pub agents: Vec<AgentDefinition>,
pub endpoints: Vec<EndpointDefinition>,
pub metadata: Value,
}Expand description
Portable runtime configuration shared by embedded and connected runtimes.
Fields§
§schema_version: u32§project_id: String§providers: Vec<ProviderRequirement>§agents: Vec<AgentDefinition>§endpoints: Vec<EndpointDefinition>§metadata: ValueImplementations§
Source§impl RuntimeManifest
impl RuntimeManifest
pub fn new(project_id: impl Into<String>) -> Self
pub fn from_json(bytes: &[u8]) -> Result<Self, RuntimeError>
pub fn to_json(&self) -> Result<Vec<u8>, RuntimeError>
pub fn content_hash(&self) -> Result<String, RuntimeError>
pub fn validate(&self) -> Result<(), RuntimeError>
Trait Implementations§
Source§impl Clone for RuntimeManifest
impl Clone for RuntimeManifest
Source§fn clone(&self) -> RuntimeManifest
fn clone(&self) -> RuntimeManifest
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 RuntimeManifest
impl Debug for RuntimeManifest
Source§impl<'de> Deserialize<'de> for RuntimeManifest
impl<'de> Deserialize<'de> for RuntimeManifest
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 RuntimeManifest
impl PartialEq for RuntimeManifest
Source§impl Serialize for RuntimeManifest
impl Serialize for RuntimeManifest
impl StructuralPartialEq for RuntimeManifest
Auto Trait Implementations§
impl Freeze for RuntimeManifest
impl RefUnwindSafe for RuntimeManifest
impl Send for RuntimeManifest
impl Sync for RuntimeManifest
impl Unpin for RuntimeManifest
impl UnsafeUnpin for RuntimeManifest
impl UnwindSafe for RuntimeManifest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.