pub enum Vendor {
LagrangeOneBot,
NapCat,
LLOneBot,
Other,
}Expand description
OneBot 协议端的实现厂商,由 app_name 子串判定。
只区分 nagisa 显式适配的三家——Lagrange.OneBot / NapCat / LLOneBot;其余实现端
(go-cqhttp / Shamrock / 未知 / 所有 Milky 端)一律归 Vendor::Other。
Variants§
Implementations§
Source§impl Vendor
impl Vendor
Sourcepub fn from_app_name(app_name: &str) -> Vendor
pub fn from_app_name(app_name: &str) -> Vendor
由 app_name(大小写不敏感子串)判定厂商;非三家一律 Vendor::Other。
Trait Implementations§
impl Copy for Vendor
impl Eq for Vendor
impl StructuralPartialEq for Vendor
Auto Trait Implementations§
impl Freeze for Vendor
impl RefUnwindSafe for Vendor
impl Send for Vendor
impl Sync for Vendor
impl Unpin for Vendor
impl UnsafeUnpin for Vendor
impl UnwindSafe for Vendor
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