pub struct Runtime {
pub language: String,
pub version: String,
pub aliases: Vec<String>,
}Expand description
A runtime available to be used by Piston.
§Note
Runtimes are not meant to be created manually. Instead, they should
be fetched from Piston using Client::fetch_runtimes and stored,
if you have a need for the information.
Fields§
§language: StringThe language.
version: StringThe version of the language.
aliases: Vec<String>The aliases associated with this runtime.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Runtime
impl<'de> Deserialize<'de> for Runtime
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 Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
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