14 lines
377 B
Rust
14 lines
377 B
Rust
|
|
use geth_types::{ResourceId, TopicId};
|
||
|
|
use serde::{Deserialize, Serialize};
|
||
|
|
|
||
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||
|
|
pub struct PubsubTopic {
|
||
|
|
pub id: TopicId,
|
||
|
|
pub resource: ResourceId,
|
||
|
|
pub name: String,
|
||
|
|
}
|
||
|
|
|
||
|
|
#[must_use]
|
||
|
|
pub fn pubsub_storage_warning() -> &'static str {
|
||
|
|
"pubsub is lossy notification transport, not authoritative storage"
|
||
|
|
}
|