appstruct-ir 0.1.0

Stable typed intermediate representation and diagnostics for AppStruct
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
pub struct EntityViewsIr {
    #[serde(default, skip_serializing_if = "is_false")]
    pub soft_delete: bool,
}

#[allow(clippy::trivially_copy_pass_by_ref)]
fn is_false(value: &bool) -> bool {
    !value
}