pub struct Command {
pub name: String,
pub lib: String,
pub id: String,
pub lang: String,
pub src: Source,
pub return_type: String,
pub params: Vec<(String, String)>,
pub readers: Vec<String>,
pub writers: Vec<String>,
}Fields§
§name: String§lib: String§id: String§lang: String§src: Source§return_type: String§params: Vec<(String, String)>§readers: Vec<String>§writers: Vec<String>Implementations§
source§impl Command
impl Command
pub fn exists(lib: &str, id: &str) -> bool
pub fn new(lib: &str, id: &str) -> Command
pub fn lookup(lib: &str, ctl: &str, cmd: &str) -> Command
pub fn cast_params(&self, params: DataObject)
pub fn execute(&self, args: DataObject) -> Result<DataObject, CodeException>
pub fn src(&self) -> Case
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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