move cmd off of grpc
This commit is contained in:
20
server/src/command/command_handle.rs
Normal file
20
server/src/command/command_handle.rs
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user