20 lines
394 B
Rust
20 lines
394 B
Rust
|
use std::path::PathBuf;
|
||
|
|
||
|
use crate::request::Request;
|
||
|
|
||
|
#[derive(Clone, Debug)]
|
||
|
pub struct DevRequest {
|
||
|
pub watch: bool,
|
||
|
pub use_latest_trusted: bool,
|
||
|
pub init_msg: serde_json::Value,
|
||
|
pub label: String,
|
||
|
pub contract_manifest: PathBuf,
|
||
|
pub release: bool,
|
||
|
}
|
||
|
|
||
|
impl From<DevRequest> for Request {
|
||
|
fn from(request: DevRequest) -> Self {
|
||
|
Self::Dev(request)
|
||
|
}
|
||
|
}
|