12 lines
318 B
Rust
12 lines
318 B
Rust
use crate::Background;
|
|
|
|
use super::kinds::ServiceItemKind;
|
|
use super::service_items::ServiceItem;
|
|
|
|
pub trait Content {
|
|
fn title(&self) -> String;
|
|
fn kind(&self) -> ServiceItemKind;
|
|
fn to_service_item(&self) -> ServiceItem;
|
|
fn background(&self) -> Option<Background>;
|
|
fn subtext(&self) -> String;
|
|
}
|