#[non_exhaustive]pub struct CreateRepositoryRequest {
pub parent: String,
pub repository: Option<Repository>,
pub repository_id: String,
/* private fields */
}Expand description
Message for creating a Repository.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.
repository: Option<Repository>Required. The repository to create.
repository_id: StringRequired. The ID to use for the repository, which will become the final component of the repository’s resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&’()*+,;=@.
Implementations§
Source§impl CreateRepositoryRequest
impl CreateRepositoryRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_repository<T>(self, v: T) -> Selfwhere
T: Into<Repository>,
pub fn set_repository<T>(self, v: T) -> Selfwhere
T: Into<Repository>,
Sets the value of repository.
Sourcepub fn set_or_clear_repository<T>(self, v: Option<T>) -> Selfwhere
T: Into<Repository>,
pub fn set_or_clear_repository<T>(self, v: Option<T>) -> Selfwhere
T: Into<Repository>,
Sets or clears the value of repository.
Sourcepub fn set_repository_id<T: Into<String>>(self, v: T) -> Self
pub fn set_repository_id<T: Into<String>>(self, v: T) -> Self
Sets the value of repository_id.
Trait Implementations§
Source§impl Clone for CreateRepositoryRequest
impl Clone for CreateRepositoryRequest
Source§fn clone(&self) -> CreateRepositoryRequest
fn clone(&self) -> CreateRepositoryRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateRepositoryRequest
impl Debug for CreateRepositoryRequest
Source§impl Default for CreateRepositoryRequest
impl Default for CreateRepositoryRequest
Source§fn default() -> CreateRepositoryRequest
fn default() -> CreateRepositoryRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateRepositoryRequest
impl Message for CreateRepositoryRequest
Source§impl PartialEq for CreateRepositoryRequest
impl PartialEq for CreateRepositoryRequest
impl StructuralPartialEq for CreateRepositoryRequest
Auto Trait Implementations§
impl Freeze for CreateRepositoryRequest
impl RefUnwindSafe for CreateRepositoryRequest
impl Send for CreateRepositoryRequest
impl Sync for CreateRepositoryRequest
impl Unpin for CreateRepositoryRequest
impl UnwindSafe for CreateRepositoryRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more