#[derive(Clone, Debug, Eq, PartialEq)]
pub struct SnapshotKey {
domain: String,
network: String,
entity: String,
collection: String,
}
impl SnapshotKey {
pub fn full(
domain: impl Into<String>,
network: impl Into<String>,
entity: impl Into<String>,
collection: impl Into<String>,
) -> Self {
Self {
domain: domain.into(),
network: network.into(),
entity: entity.into(),
collection: collection.into(),
}
}
pub fn domain(&self) -> &str {
&self.domain
}
pub fn network(&self) -> &str {
&self.network
}
pub fn entity(&self) -> &str {
&self.entity
}
pub fn collection(&self) -> &str {
&self.collection
}
pub const fn scope_file_stem() -> &'static str {
"full"
}
}