MCPcopy Create free account
hub / github.com/chatmail/core / get_cmd

Method get_cmd

src/param.rs:401–405  ·  view source on GitHub ↗

Get the parameter behind `Param::Cmd` interpreted as `SystemMessage`.

(&self)

Source from the content-addressed store, hash-verified

399
400 /// Get the parameter behind `Param::Cmd` interpreted as `SystemMessage`.
401 pub fn get_cmd(&self) -> SystemMessage {
402 self.get_int(Param::Cmd)
403 .and_then(SystemMessage::from_i32)
404 .unwrap_or_default()
405 }
406
407 /// Set the parameter behind `Param::Cmd`.
408 pub fn set_cmd(&mut self, value: SystemMessage) {

Callers 15

from_msgMethod · 0.80
grpimageMethod · 0.80
renderMethod · 0.80
render_messageMethod · 0.80
prepare_msg_rawMethod · 0.80
prepare_send_msgFunction · 0.80
create_send_msg_jobsFunction · 0.80
is_infoMethod · 0.80
get_info_typeMethod · 0.80

Calls 1

get_intMethod · 0.80

Tested by

no test coverage detected