busylib 0.0.10

BUSY Bar Rust HTTP client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub struct StreamControl {
    pub enable: bool,
}

impl StreamControl {
    pub const fn enable() -> Self {
        Self { enable: true }
    }

    pub const fn disable() -> Self {
        Self { enable: false }
    }
}