#[non_exhaustive]pub struct Provider {
pub name: String,
pub display_name: String,
pub event_types: Vec<EventType>,
/* private fields */
}Expand description
A representation of the Provider resource.
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.name: StringOutput only. In
projects/{project}/locations/{location}/providers/{provider_id} format.
display_name: StringOutput only. Human friendly name for the Provider. For example “Cloud Storage”.
event_types: Vec<EventType>Output only. Event types for this provider.
Implementations§
Source§impl Provider
impl Provider
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_event_types<T, V>(self, v: T) -> Self
pub fn set_event_types<T, V>(self, v: T) -> Self
Sets the value of event_types.
Trait Implementations§
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnwindSafe for Provider
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