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

Method get_int

src/param.rs:386–388  ·  view source on GitHub ↗

Get the given parameter and parse as `i32`.

(&self, key: Param)

Source from the content-addressed store, hash-verified

384
385 /// Get the given parameter and parse as `i32`.
386 pub fn get_int(&self, key: Param) -> Option<i32> {
387 self.get(key).and_then(|s| s.parse().ok())
388 }
389
390 /// Get the given parameter and parse as `i64`.
391 pub fn get_i64(&self, key: Param) -> Option<i64> {

Callers 15

from_msgMethod · 0.80
render_messageMethod · 0.80
prepare_msg_rawMethod · 0.80
create_send_msg_jobsFunction · 0.80
add_contact_to_chat_exFunction · 0.80
get_boolMethod · 0.80
get_cmdMethod · 0.80
get_infoMethod · 0.80
get_widthMethod · 0.80

Calls 2

parseMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected