#[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
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.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
Sourcepub fn set_recursive<T: Into<bool>>(self, v: T) -> Self
pub fn set_recursive<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for FetchTreeRequest
impl Clone for FetchTreeRequest
Source§fn clone(&self) -> FetchTreeRequest
fn clone(&self) -> FetchTreeRequest
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 FetchTreeRequest
impl Debug for FetchTreeRequest
Source§impl Default for FetchTreeRequest
impl Default for FetchTreeRequest
Source§fn default() -> FetchTreeRequest
fn default() -> FetchTreeRequest
Returns the “default value” for a type. Read more
Source§impl Message for FetchTreeRequest
impl Message for FetchTreeRequest
Source§impl PartialEq for FetchTreeRequest
impl PartialEq for FetchTreeRequest
impl StructuralPartialEq for FetchTreeRequest
Auto Trait Implementations§
impl Freeze for FetchTreeRequest
impl RefUnwindSafe for FetchTreeRequest
impl Send for FetchTreeRequest
impl Sync for FetchTreeRequest
impl Unpin for FetchTreeRequest
impl UnwindSafe for FetchTreeRequest
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