github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/storage_uri.rs (about)

     1  /*
     2   * lakeFS API
     3   *
     4   * lakeFS HTTP API
     5   *
     6   * The version of the OpenAPI document: 1.0.0
     7   * Contact: services@treeverse.io
     8   * Generated by: https://openapi-generator.tech
     9   */
    10  
    11  use crate::models;
    12  
    13  /// StorageUri : URI to a path in a storage provider (e.g. \"s3://bucket1/path/to/object\")
    14  #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
    15  pub struct StorageUri {
    16      #[serde(rename = "location")]
    17      pub location: String,
    18  }
    19  
    20  impl StorageUri {
    21      /// URI to a path in a storage provider (e.g. \"s3://bucket1/path/to/object\")
    22      pub fn new(location: String) -> StorageUri {
    23          StorageUri {
    24              location,
    25          }
    26      }
    27  }
    28