pub struct Chat {}
Expand description
chat module function handling
Implementations
sourceimpl Chat
impl Chat
sourcepub fn cli(command: &str)
pub fn cli(command: &str)
CLI command interpretation
The CLI commands of feed module are processed here
sourcefn id_string_to_bin(id: String) -> Result<Vec<u8>, String>
fn id_string_to_bin(id: String) -> Result<Vec<u8>, String>
Convert Group ID from String to Binary
sourcefn uuid_string_to_bin(id_str: String) -> Result<Vec<u8>, String>
fn uuid_string_to_bin(id_str: String) -> Result<Vec<u8>, String>
Convert Group ID from String to Binary
sourcefn send_chat_message(group_id: Vec<u8>, message_text: String)
fn send_chat_message(group_id: Vec<u8>, message_text: String)
Create and send feed message via rpc
sourcefn request_chat_conversation(group_id: Vec<u8>, last_index: u64)
fn request_chat_conversation(group_id: Vec<u8>, last_index: u64)
Request chat conversation via rpc
This provides all chat messages of a specific conversation. The conversation is addressed via it’s group id
fn analyze_content(content: &Vec<u8>) -> Result<Vec<String>, String>
Auto Trait Implementations
impl RefUnwindSafe for Chat
impl Send for Chat
impl Sync for Chat
impl Unpin for Chat
impl UnwindSafe for Chat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more