Some checks failed
Rust / build (ubuntu-latest, stable) (push) Failing after 2m56s
Rust / build (ubuntu-latest, stable) (pull_request) Failing after 1m43s
Rust / build (macos-latest, stable) (push) Has been cancelled
Rust / build (windows-latest, stable) (push) Has been cancelled
Rust / build (macos-latest, stable) (pull_request) Has been cancelled
Rust / build (windows-latest, stable) (pull_request) Has been cancelled
28 lines
798 B
Rust
28 lines
798 B
Rust
use gpui::Action;
|
|
use nostr_sdk::prelude::*;
|
|
use serde::Deserialize;
|
|
use settings::SignerKind;
|
|
|
|
#[derive(Action, Clone, PartialEq, Eq, Deserialize)]
|
|
#[action(namespace = chat, no_json)]
|
|
pub enum Command {
|
|
Insert(&'static str),
|
|
ChangeSubject(&'static str),
|
|
ChangeSigner(SignerKind),
|
|
ToggleBackup,
|
|
}
|
|
|
|
#[derive(Action, Clone, PartialEq, Eq, Deserialize)]
|
|
#[action(namespace = chat, no_json)]
|
|
pub struct SeenOn(pub EventId);
|
|
|
|
/// Define a open public key action
|
|
#[derive(Action, Clone, PartialEq, Eq, Deserialize, Debug)]
|
|
#[action(namespace = pubkey, no_json)]
|
|
pub struct OpenPublicKey(pub PublicKey);
|
|
|
|
/// Define a copy inline public key action
|
|
#[derive(Action, Clone, PartialEq, Eq, Deserialize, Debug)]
|
|
#[action(namespace = pubkey, no_json)]
|
|
pub struct CopyPublicKey(pub PublicKey);
|