pub struct Draft {
pub source: String,
pub inputs: Vec<(String, String)>,
pub type_defs: Value,
}Expand description
A script draft with its parsed input definitions.
inputs is a list of (name, type_display) pairs. The server sends
these as structured {name, ty, docs} objects — the SDK normalizes
that plus the legacy [[name, type], …] tuple form into simple
(name, display_string) pairs. type_defs keeps the server’s raw
custom-type block so new fields don’t require an SDK bump.
Fields§
§source: String§inputs: Vec<(String, String)>§type_defs: ValueTrait Implementations§
Source§impl<'de> Deserialize<'de> for Draft
impl<'de> Deserialize<'de> for Draft
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 Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draft
impl UnwindSafe for Draft
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