pub struct ScriptNode {
pub kind: NodeKind,
pub start: usize,
pub end: usize,
pub header: String,
pub branches: Vec<Vec<ScriptNode>>,
pub name: String,
pub query: String,
pub params: String,
pub conditions: Vec<String>,
}Expand description
One statement or control structure of a script.
Fields§
§kind: NodeKind§start: usize§end: usize§header: StringA statement’s text; a control structure’s condition text.
branches: Vec<Vec<ScriptNode>>§name: StringA procedure’s name, a FOR loop’s variable.
query: StringA FOR loop’s query.
params: StringA procedure’s parameter list.
conditions: Vec<String>Every condition that picks a path: IF/ELSEIF, CASE and WHEN, WHILE, UNTIL.
Trait Implementations§
Source§impl Clone for ScriptNode
impl Clone for ScriptNode
Source§impl Debug for ScriptNode
impl Debug for ScriptNode
Source§impl<'de> Deserialize<'de> for ScriptNode
impl<'de> Deserialize<'de> for ScriptNode
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 ScriptNode
Source§impl PartialEq for ScriptNode
impl PartialEq for ScriptNode
Source§impl Serialize for ScriptNode
impl Serialize for ScriptNode
impl StructuralPartialEq for ScriptNode
Auto Trait Implementations§
impl Forget for ScriptNode
impl Freeze for ScriptNodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Vec<ScriptNode>>: Freeze,
PhantomData<String>: Freeze,
impl Move for ScriptNode
impl RefUnwindSafe for ScriptNode
impl Send for ScriptNodewhere
RawVecInner: Send,
impl Sync for ScriptNodewhere
RawVecInner: Sync,
impl Unpin for ScriptNode
impl UnsafeUnpin for ScriptNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Vec<ScriptNode>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ScriptNodewhere
RawVecInner: UnwindSafe,
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
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.