hanzo_client/models/range.rs
1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Range {
16 /// End is the position just past the span, excluded — the range is half-open, so an empty range has Start equal to End.
17 #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
18 pub end: Option<Box<models::Position>>,
19 /// Start is the first position in the span, included.
20 #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
21 pub start: Option<Box<models::Position>>,
22}
23
24impl Range {
25 pub fn new() -> Range {
26 Range {
27 end: None,
28 start: None,
29 }
30 }
31}
32