|
|
@@ -1,10 +1,10 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Gitea API. |
|
|
|
* |
|
|
|
* This documentation describes the Gitea API. |
|
|
|
* |
|
|
|
* OpenAPI spec version: 1.1.1 |
|
|
|
* |
|
|
|
* |
|
|
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
|
|
|
*/ |
|
|
|
|
|
|
@@ -74,7 +74,7 @@ pub struct Repository { |
|
|
|
#[serde(rename = "owner")] |
|
|
|
owner: Option<::models::User>, |
|
|
|
#[serde(rename = "parent")] |
|
|
|
parent: Option<::models::Repository>, |
|
|
|
parent: Option<Box<::models::Repository>>, |
|
|
|
#[serde(rename = "permissions")] |
|
|
|
permissions: Option<::models::Permission>, |
|
|
|
#[serde(rename = "private")] |
|
|
@@ -638,15 +638,15 @@ impl Repository { |
|
|
|
} |
|
|
|
|
|
|
|
pub fn set_parent(&mut self, parent: ::models::Repository) { |
|
|
|
self.parent = Some(parent); |
|
|
|
self.parent = Some(Box::new(parent)); |
|
|
|
} |
|
|
|
|
|
|
|
pub fn with_parent(mut self, parent: ::models::Repository) -> Repository { |
|
|
|
self.parent = Some(parent); |
|
|
|
self.parent = Some(Box::new(parent)); |
|
|
|
self |
|
|
|
} |
|
|
|
|
|
|
|
pub fn parent(&self) -> Option<&::models::Repository> { |
|
|
|
pub fn parent(&self) -> Option<&Box<::models::Repository>> { |
|
|
|
self.parent.as_ref() |
|
|
|
} |
|
|
|
|
|
|
|