21 lines
308 B
Rust
21 lines
308 B
Rust
use uuid::Uuid;
|
|
|
|
pub struct CommandHandle {
|
|
name: String,
|
|
uuid: Uuid,
|
|
}
|
|
|
|
impl CommandHandle {
|
|
pub fn new(name: String, uuid: Uuid) -> Self {
|
|
Self { name, uuid }
|
|
}
|
|
|
|
pub fn name(&self) -> &str {
|
|
&self.name
|
|
}
|
|
|
|
pub fn uuid(&self) -> &Uuid {
|
|
&self.uuid
|
|
}
|
|
}
|