teo_runtime/readwrite/
read.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::Serialize;
use crate::pipeline::pipeline::Pipeline;

#[derive(Debug, Serialize, Clone)]
pub enum Read {
    Read,
    NoRead,
    ReadIf(Pipeline),
}

impl Read {
    pub fn is_no_read(&self) -> bool {
        match self {
            Read::NoRead => true,
            _ => false
        }
    }
}