feat: ✨ make Rustler not clonable
This commit is contained in:
parent
3933277602
commit
97d8dab22e
@ -16,6 +16,7 @@ async fn main() -> Result<()> {
|
||||
let ticker = Ticker {
|
||||
market: "BINANCE".to_string(),
|
||||
symbol: "BTCUSDT".to_string(),
|
||||
quote_asset: None,
|
||||
};
|
||||
|
||||
let _obs = sx.stream().await?.filter(move |quote| quote.belongs_to(&ticker)).subscribe(|v| {
|
||||
|
||||
@ -497,7 +497,7 @@ macro_rules! rustler {
|
||||
) => {
|
||||
// Expand to the struct with derives and the fields
|
||||
$(#[$outer])*
|
||||
#[derive(Debug, Clone, Default)]
|
||||
#[derive(Default)]
|
||||
$vis struct $name {
|
||||
status: $crate::rustlers::RustlerStatus,
|
||||
next_run: $crate::rustlers::chrono::DateTime<$crate::rustlers::chrono::Local>,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user