#[non_exhaustive]pub struct ReferenceListScope {
pub scope_names: Vec<String>,
/* private fields */
}Expand description
ReferenceListScope specifies the list of scope names of the reference list.
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.scope_names: Vec<String>Optional. The list of scope names of the reference list. The scope names
should be full resource names and should be of the format:
projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}.
Implementations§
Source§impl ReferenceListScope
impl ReferenceListScope
Sourcepub fn set_scope_names<T, V>(self, v: T) -> Self
pub fn set_scope_names<T, V>(self, v: T) -> Self
Sets the value of scope_names.
§Example
ⓘ
let x = ReferenceListScope::new().set_scope_names(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ReferenceListScope
impl Clone for ReferenceListScope
Source§fn clone(&self) -> ReferenceListScope
fn clone(&self) -> ReferenceListScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReferenceListScope
impl Debug for ReferenceListScope
Source§impl Default for ReferenceListScope
impl Default for ReferenceListScope
Source§fn default() -> ReferenceListScope
fn default() -> ReferenceListScope
Returns the “default value” for a type. Read more
Source§impl Message for ReferenceListScope
impl Message for ReferenceListScope
Source§impl PartialEq for ReferenceListScope
impl PartialEq for ReferenceListScope
Source§fn eq(&self, other: &ReferenceListScope) -> bool
fn eq(&self, other: &ReferenceListScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReferenceListScope
Auto Trait Implementations§
impl Freeze for ReferenceListScope
impl RefUnwindSafe for ReferenceListScope
impl Send for ReferenceListScope
impl Sync for ReferenceListScope
impl Unpin for ReferenceListScope
impl UnsafeUnpin for ReferenceListScope
impl UnwindSafe for ReferenceListScope
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