pub struct ScriptTable { /* private fields */ }Implementations§
Source§impl ScriptTable
impl ScriptTable
pub const DEFAULT_PATH: &str = "thedes-cmd.json"
pub async fn read_from(path: impl AsRef<Path>) -> Result<Self, Error>
pub async fn read() -> Result<Self, Error>
pub async fn run_reading_from( path: impl AsRef<Path>, key: char, context: &mut CommandContext<'_, '_>, ) -> Result<(), Error>
pub async fn run_reading( key: char, context: &mut CommandContext<'_, '_>, ) -> Result<(), Error>
pub fn run( &self, key: char, context: &mut CommandContext<'_, '_>, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for ScriptTable
impl Clone for ScriptTable
Source§fn clone(&self) -> ScriptTable
fn clone(&self) -> ScriptTable
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 ScriptTable
impl Debug for ScriptTable
Source§impl<'de> Deserialize<'de> for ScriptTable
impl<'de> Deserialize<'de> for ScriptTable
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 ScriptTable
impl PartialEq for ScriptTable
Source§impl Serialize for ScriptTable
impl Serialize for ScriptTable
impl StructuralPartialEq for ScriptTable
Auto Trait Implementations§
impl Freeze for ScriptTable
impl RefUnwindSafe for ScriptTable
impl Send for ScriptTable
impl Sync for ScriptTable
impl Unpin for ScriptTable
impl UnsafeUnpin for ScriptTable
impl UnwindSafe for ScriptTable
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