Enum csml_engine::data::BotOpt
source · pub enum BotOpt {
CsmlBot(CsmlBot),
Id {
version_id: String,
bot_id: String,
apps_endpoint: Option<String>,
multibot: Option<Vec<MultiBot>>,
},
BotId {
bot_id: String,
apps_endpoint: Option<String>,
multibot: Option<Vec<MultiBot>>,
},
}
Variants
CsmlBot(CsmlBot)
Id
BotId
Implementations
sourceimpl BotOpt
impl BotOpt
pub fn search_bot(&self, db: &mut Database) -> Result<CsmlBot, EngineError>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for BotOpt
impl<'de> Deserialize<'de> for BotOpt
sourcefn 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 RefUnwindSafe for BotOpt
impl Send for BotOpt
impl Sync for BotOpt
impl Unpin for BotOpt
impl UnwindSafe for BotOpt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more