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

Method get_bool

src/param.rs:396–398  ·  view source on GitHub ↗

Get the given parameter and parse as `bool`.

(&self, key: Param)

Source from the content-addressed store, hash-verified

394
395 /// Get the given parameter and parse as `bool`.
396 pub fn get_bool(&self, key: Param) -> Option<bool> {
397 self.get_int(key).map(|v| v != 0)
398 }
399
400 /// Get the parameter behind `Param::Cmd` interpreted as `SystemMessage`.
401 pub fn get_cmd(&self) -> SystemMessage {

Callers 14

from_msgMethod · 0.80
should_skip_autocryptMethod · 0.80
grpimageMethod · 0.80
render_messageMethod · 0.80
handle_edit_deleteFunction · 0.80
handle_post_messageFunction · 0.80
is_unpromotedMethod · 0.80
prepare_send_msgFunction · 0.80
create_send_msg_jobsFunction · 0.80
has_video_initiallyMethod · 0.80
is_botMethod · 0.80
is_editedMethod · 0.80

Calls 1

get_intMethod · 0.80

Tested by

no test coverage detected