#[non_exhaustive]pub struct GetDefaultBranchResponse {
pub branch: String,
pub set_time: Option<Timestamp>,
pub note: String,
/* private fields */
}Expand description
Response message of CatalogService.GetDefaultBranch.
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.branch: StringFull resource name of the branch id currently set as default branch.
set_time: Option<Timestamp>The time when this branch is set to default.
note: StringThis corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.
Implementations§
Source§impl GetDefaultBranchResponse
impl GetDefaultBranchResponse
Sourcepub fn set_branch<T: Into<String>>(self, v: T) -> Self
pub fn set_branch<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_set_time<T>(self, v: T) -> Self
pub fn set_set_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_set_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_set_time<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for GetDefaultBranchResponse
impl Clone for GetDefaultBranchResponse
Source§fn clone(&self) -> GetDefaultBranchResponse
fn clone(&self) -> GetDefaultBranchResponse
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 GetDefaultBranchResponse
impl Debug for GetDefaultBranchResponse
Source§impl Default for GetDefaultBranchResponse
impl Default for GetDefaultBranchResponse
Source§fn default() -> GetDefaultBranchResponse
fn default() -> GetDefaultBranchResponse
Returns the “default value” for a type. Read more
Source§impl Message for GetDefaultBranchResponse
impl Message for GetDefaultBranchResponse
Source§impl PartialEq for GetDefaultBranchResponse
impl PartialEq for GetDefaultBranchResponse
impl StructuralPartialEq for GetDefaultBranchResponse
Auto Trait Implementations§
impl Freeze for GetDefaultBranchResponse
impl RefUnwindSafe for GetDefaultBranchResponse
impl Send for GetDefaultBranchResponse
impl Sync for GetDefaultBranchResponse
impl Unpin for GetDefaultBranchResponse
impl UnsafeUnpin for GetDefaultBranchResponse
impl UnwindSafe for GetDefaultBranchResponse
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