pub struct Object {
pub name: String,
pub language: String,
pub code: Vec<String>,
}Expand description
Object represents a parsed object macro from a RiveScript source document.
Object macros have a name, a programming language, and an array of their source code as defined in the RiveScript document. It is up to the interpreter program to understand how to parse an object macro and make it executable.
Fields§
§name: String§language: String§code: Vec<String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
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