pub struct PreviewInline {
pub content: String,
pub args: HashMap<String, Value>,
pub language: ScriptLang,
}Fields§
§content: StringThe code to run
args: HashMap<String, Value>The arguments to pass to the script or flow
language: ScriptLangImplementations§
Source§impl PreviewInline
impl PreviewInline
pub fn new( content: String, args: HashMap<String, Value>, language: ScriptLang, ) -> PreviewInline
Trait Implementations§
Source§impl Clone for PreviewInline
impl Clone for PreviewInline
Source§fn clone(&self) -> PreviewInline
fn clone(&self) -> PreviewInline
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 PreviewInline
impl Debug for PreviewInline
Source§impl Default for PreviewInline
impl Default for PreviewInline
Source§fn default() -> PreviewInline
fn default() -> PreviewInline
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreviewInline
impl<'de> Deserialize<'de> for PreviewInline
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 PreviewInline
impl PartialEq for PreviewInline
Source§impl Serialize for PreviewInline
impl Serialize for PreviewInline
impl StructuralPartialEq for PreviewInline
Auto Trait Implementations§
impl Freeze for PreviewInline
impl RefUnwindSafe for PreviewInline
impl Send for PreviewInline
impl Sync for PreviewInline
impl Unpin for PreviewInline
impl UnwindSafe for PreviewInline
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