Began moving database communication into a client.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -47,11 +47,19 @@ pub struct Message {
|
||||
|
||||
impl Message {
|
||||
pub fn new<A>(action: A) -> Self
|
||||
where
|
||||
A: Into<MsgAction>,
|
||||
{
|
||||
let msg_id = MessageID::new();
|
||||
Self::with_id(msg_id, action)
|
||||
}
|
||||
|
||||
pub fn with_id<A>(msg_id: MessageID, action: A) -> Self
|
||||
where
|
||||
A: Into<MsgAction>,
|
||||
{
|
||||
Self {
|
||||
msg_id: MessageID::new(),
|
||||
msg_id: msg_id,
|
||||
action: action.into(),
|
||||
route: Route::default(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user