Struct nexus_rs::models::repository::Repository
[−]
[src]
pub struct Repository {
pub content_resource_uri: Option<String>,
pub id: String,
pub name: String,
pub provider: String,
pub provider_role: String,
pub format: String,
pub repo_type: String,
pub exposed: bool,
pub write_policy: String,
pub browseable: bool,
pub indexable: bool,
pub not_found_cache_ttl: i32,
pub repo_policy: Option<String>,
pub checksum_policy: Option<String>,
pub download_remote_indexes: bool,
pub default_local_storage_url: String,
pub remote_storage: Option<RemoteStorage>,
pub file_type_validation: Option<bool>,
pub artifact_max_age: Option<i32>,
pub metadata_max_age: Option<i32>,
pub item_max_age: Option<i32>,
pub auto_block_active: Option<bool>,
}Fields
content_resource_uri: Option<String>
id: String
name: String
provider: String
provider_role: String
format: String
repo_type: String
exposed: bool
write_policy: String
browseable: bool
indexable: bool
not_found_cache_ttl: i32
repo_policy: Option<String>
checksum_policy: Option<String>
download_remote_indexes: bool
default_local_storage_url: String
remote_storage: Option<RemoteStorage>
file_type_validation: Option<bool>
artifact_max_age: Option<i32>
metadata_max_age: Option<i32>
item_max_age: Option<i32>
auto_block_active: Option<bool>
Methods
impl Repository[src]
fn from_id<'a>(client: &'a Client,
id: &str)
-> Result<Response<'a, Self>, String>
id: &str)
-> Result<Response<'a, Self>, String>
fn from_summary<'a>(client: &'a Client,
summary: RepositorySummary)
-> Result<Response<'a, Self>, String>
summary: RepositorySummary)
-> Result<Response<'a, Self>, String>
Trait Implementations
impl Debug for Repository[src]
impl Clone for Repository[src]
fn clone(&self) -> Repository
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for Repository[src]
fn eq(&self, __arg_0: &Repository) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Repository) -> bool
This method tests for !=.