argoflows 0.1.1

Argoflows lets you seamlessly integrate and manage Argo Workflows directly from your Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

/// `Counter` is the `Counter` prometheus metric.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Counter {
    /// `Value` is the value of the metric.
    #[serde(rename = "value")]
    pub value: String,
}

impl Counter {
    pub fn new(value: &str) -> Counter {
        Counter { value: value.to_string(), }
    }
}