lumina/src/core/content.rs

11 lines
309 B
Rust

use crate::Background;
use super::{kinds::ServiceItemKind, 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;
}