pub struct AppContextBuilder { /* private fields */ }Implementations§
Source§impl AppContextBuilder
impl AppContextBuilder
pub fn new() -> Self
pub fn remote_addr(self, addr: String) -> Self
pub fn command(self, cmd: Option<Command>) -> Self
pub fn data(self, data: Vec<u8>) -> Self
pub fn values(self, values: Arc<Mutex<HashMap<String, String>>>) -> Self
pub fn user_id(self, user_id: String) -> Self
pub fn platform(self, platform: i32) -> Self
pub fn client_id(self, client_id: String) -> Self
pub fn with_language(self, language: Option<String>) -> Self
pub fn with_conn_id(self, conn_id: String) -> Self
pub fn with_client_msg_id(self, client_msg_id: String) -> Self
pub fn build(self) -> Result<AppContext>
Trait Implementations§
Source§impl Default for AppContextBuilder
impl Default for AppContextBuilder
Source§fn default() -> AppContextBuilder
fn default() -> AppContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AppContextBuilder
impl RefUnwindSafe for AppContextBuilder
impl Send for AppContextBuilder
impl Sync for AppContextBuilder
impl Unpin for AppContextBuilder
impl UnwindSafe for AppContextBuilder
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