[][src]Struct cqrs_builder::AppJson

pub struct AppJson { /* fields omitted */ }

Methods

impl AppJson[src]

pub fn new(appid: &str) -> AppJson[src]

pub fn remove_auth(&mut self, auth: usize) -> &mut Self[src]

pub fn no_default_auth(&mut self) -> &mut Self[src]

pub fn add_auth(&mut self, auth: usize) -> &mut Self[src]

pub fn add_menu(&mut self, name: &str, func_name: &str) -> &mut Self[src]

pub fn add_event(
    &mut self,
    _type: usize,
    name: &str,
    priority: usize,
    func_name: &str
) -> &mut Self
[src]

事件类型,名字,优先度,函数名字。具体查看酷q文档

pub fn no_default_event(&mut self) -> &mut Self[src]

pub fn remove_event(&mut self, _type: usize, priority: usize) -> &mut Self[src]

删除指定类型,优先度的事件。 注意: 若删除事件,sdk里对应的事件回调将不会被执行。

pub fn finish(&mut self)[src]

impl AppJson[src]

pub fn ret(&mut self, ret: usize) -> &mut Self[src]

pub fn apiver(&mut self, apiver: usize) -> &mut Self[src]

pub fn name(&mut self, name: String) -> &mut Self[src]

pub fn version(&mut self, version: String) -> &mut Self[src]

pub fn version_id(&mut self, version_id: usize) -> &mut Self[src]

pub fn author(&mut self, author: String) -> &mut Self[src]

pub fn description(&mut self, description: String) -> &mut Self[src]

Trait Implementations

impl Default for AppJson[src]

impl Serialize for AppJson[src]

Auto Trait Implementations

impl RefUnwindSafe for AppJson

impl Send for AppJson

impl Sync for AppJson

impl Unpin for AppJson

impl UnwindSafe for AppJson

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.