pub struct HostedExecutableCode {
pub language: Option<String>,
pub code: String,
}Expand description
Executable code generated by a hosted runtime.
A code declaration alone does not prove that execution occurred or succeeded. Inspect separately returned execution status, results, and artifacts.
§Examples
use providers_kit::hosted::HostedExecutableCode;
let value = HostedExecutableCode { language: Some("python".into()), code: "print(1 + 1)".into() };
assert_eq!(value.code, "print(1 + 1)");Fields§
§language: Option<String>Programming language, when reported.
code: StringProvider-returned executable source declaration; execution requires separate evidence.
Trait Implementations§
Source§impl Clone for HostedExecutableCode
impl Clone for HostedExecutableCode
Source§impl Debug for HostedExecutableCode
impl Debug for HostedExecutableCode
Source§impl<'de> Deserialize<'de> for HostedExecutableCode
impl<'de> Deserialize<'de> for HostedExecutableCode
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
impl Eq for HostedExecutableCode
Source§impl PartialEq for HostedExecutableCode
impl PartialEq for HostedExecutableCode
Source§impl Serialize for HostedExecutableCode
impl Serialize for HostedExecutableCode
impl StructuralPartialEq for HostedExecutableCode
Auto Trait Implementations§
impl Freeze for HostedExecutableCode
impl RefUnwindSafe for HostedExecutableCode
impl Send for HostedExecutableCode
impl Sync for HostedExecutableCode
impl Unpin for HostedExecutableCode
impl UnsafeUnpin for HostedExecutableCode
impl UnwindSafe for HostedExecutableCode
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.