iqengine_plugin/server/
samples_cloud.rs

1/*
2 * IQEngine Plugins Open Interface API
3 *
4 * The plugins API is a unified open interface for managing the processing of RF recordings and corresponding dataflow, with the goal of standardizing inputs and outputs to RF processing functions for easy of interoperability and to combat vendor lockin. The plugins API is planned to be converted to an OpenAPI spec once its further refined.  It will use JSON for the fields.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct SamplesCloud {
13    #[serde(rename = "account_name")]
14    pub account_name: String,
15    #[serde(rename = "container_name")]
16    pub container_name: String,
17    #[serde(rename = "file_path")]
18    pub file_path: String,
19    #[serde(rename = "sas_token", skip_serializing_if = "Option::is_none")]
20    pub sas_token: Option<String>,
21    #[serde(rename = "byte_offset", skip_serializing_if = "Option::is_none")]
22    pub byte_offset: Option<i32>,
23    #[serde(rename = "byte_length", skip_serializing_if = "Option::is_none")]
24    pub byte_length: Option<i32>,
25    #[serde(rename = "data_type")]
26    pub data_type: crate::server::DataType,
27    #[serde(rename = "sample_rate", skip_serializing_if = "Option::is_none")]
28    pub sample_rate: Option<f32>,
29    #[serde(rename = "center_freq", skip_serializing_if = "Option::is_none")]
30    pub center_freq: Option<f32>,
31}
32
33impl SamplesCloud {
34    pub fn new(
35        account_name: String,
36        container_name: String,
37        file_path: String,
38        data_type: crate::server::DataType,
39    ) -> SamplesCloud {
40        SamplesCloud {
41            account_name,
42            container_name,
43            file_path,
44            sas_token: None,
45            byte_offset: None,
46            byte_length: None,
47            data_type,
48            sample_rate: None,
49            center_freq: None,
50        }
51    }
52}