#[non_exhaustive]pub struct FetchTreeRequest {
pub repository: String,
pub ref: String,
pub recursive: bool,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
Request message for fetching a tree structure from a repository.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repository: StringRequired. The format is
projects/{project_number}/locations/{location_id}/repositories/{repository_id}.
Specifies the repository to fetch the tree from.
ref: StringOptional. ref can be a SHA-1 hash, a branch name, or a tag. Specifies
which tree to fetch. If not specified, the default branch will be used.
recursive: boolOptional. If true, include all subfolders and their files in the response. If false, only the immediate children are returned.
page_size: i32Optional. Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.
page_token: StringOptional. A token identifying a page of results the server should return.
Implementations§
Source§impl FetchTreeRequest
impl FetchTreeRequest
pub fn new() -> Self
Sourcepub fn set_repository<T: Into<String>>(self, v: T) -> Self
pub fn set_repository<T: Into<String>>(self, v: T) -> Self
Sets the value of repository.
Sourcepub fn set_recursive<T: Into<bool>>(self, v: T) -> Self
pub fn set_recursive<T: Into<bool>>(self, v: T) -> Self
Sets the value of recursive.
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 FetchTreeRequest
impl Clone for FetchTreeRequest
Source§fn clone(&self) -> FetchTreeRequest
fn clone(&self) -> FetchTreeRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more