#[non_exhaustive]pub struct FetchGitRefsRequest {
pub git_repository_link: String,
pub ref_type: RefType,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
Request for fetching git refs.
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.git_repository_link: StringRequired. The resource name of GitRepositoryLink in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
ref_type: RefTypeRequired. Type of refs to fetch.
page_size: i32Optional. Number of results to return in the list. Default to 20.
page_token: StringOptional. Page start.
Implementations§
Source§impl FetchGitRefsRequest
impl FetchGitRefsRequest
pub fn new() -> Self
Sourcepub fn set_git_repository_link<T: Into<String>>(self, v: T) -> Self
pub fn set_git_repository_link<T: Into<String>>(self, v: T) -> Self
Sets the value of git_repository_link.
Sourcepub fn set_ref_type<T: Into<RefType>>(self, v: T) -> Self
pub fn set_ref_type<T: Into<RefType>>(self, v: T) -> Self
Sets the value of ref_type.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Trait Implementations§
Source§impl Clone for FetchGitRefsRequest
impl Clone for FetchGitRefsRequest
Source§fn clone(&self) -> FetchGitRefsRequest
fn clone(&self) -> FetchGitRefsRequest
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 FetchGitRefsRequest
impl Debug for FetchGitRefsRequest
Source§impl Default for FetchGitRefsRequest
impl Default for FetchGitRefsRequest
Source§fn default() -> FetchGitRefsRequest
fn default() -> FetchGitRefsRequest
Returns the “default value” for a type. Read more
Source§impl Message for FetchGitRefsRequest
impl Message for FetchGitRefsRequest
Source§impl PartialEq for FetchGitRefsRequest
impl PartialEq for FetchGitRefsRequest
impl StructuralPartialEq for FetchGitRefsRequest
Auto Trait Implementations§
impl Freeze for FetchGitRefsRequest
impl RefUnwindSafe for FetchGitRefsRequest
impl Send for FetchGitRefsRequest
impl Sync for FetchGitRefsRequest
impl Unpin for FetchGitRefsRequest
impl UnwindSafe for FetchGitRefsRequest
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