#[non_exhaustive]pub struct ListBranchRulesResponse {
pub branch_rules: Vec<BranchRule>,
pub next_page_token: String,
/* private fields */
}Expand description
ListBranchRulesResponse is the response to listing branchRules.
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_rules: Vec<BranchRule>The list of branch rules.
next_page_token: StringA token identifying a page of results the server should return.
Implementations§
Source§impl ListBranchRulesResponse
impl ListBranchRulesResponse
pub fn new() -> Self
Sourcepub fn set_branch_rules<T, V>(self, v: T) -> Self
pub fn set_branch_rules<T, V>(self, v: T) -> Self
Sets the value of branch_rules.
§Example
ⓘ
use google_cloud_securesourcemanager_v1::model::BranchRule;
let x = ListBranchRulesResponse::new()
.set_branch_rules([
BranchRule::default()/* use setters */,
BranchRule::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListBranchRulesResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListBranchRulesResponse
impl Clone for ListBranchRulesResponse
Source§fn clone(&self) -> ListBranchRulesResponse
fn clone(&self) -> ListBranchRulesResponse
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 ListBranchRulesResponse
impl Debug for ListBranchRulesResponse
Source§impl Default for ListBranchRulesResponse
impl Default for ListBranchRulesResponse
Source§fn default() -> ListBranchRulesResponse
fn default() -> ListBranchRulesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListBranchRulesResponse
impl Message for ListBranchRulesResponse
Source§impl PartialEq for ListBranchRulesResponse
impl PartialEq for ListBranchRulesResponse
impl StructuralPartialEq for ListBranchRulesResponse
Auto Trait Implementations§
impl Freeze for ListBranchRulesResponse
impl RefUnwindSafe for ListBranchRulesResponse
impl Send for ListBranchRulesResponse
impl Sync for ListBranchRulesResponse
impl Unpin for ListBranchRulesResponse
impl UnwindSafe for ListBranchRulesResponse
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