#[non_exhaustive]pub struct CreateSourceRequest {
pub parent: String,
pub source: Option<Source>,
/* private fields */
}Expand description
Request message for creating a source.
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.parent: StringRequired. Resource name of the new source’s parent. Its format should be
organizations/[organization_id].
source: Option<Source>Required. The Source being created, only the display_name and description will be used. All other fields will be ignored.
Implementations§
Source§impl CreateSourceRequest
impl CreateSourceRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source<T>(self, v: T) -> Self
pub fn set_source<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_source<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_source<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateSourceRequest
impl Clone for CreateSourceRequest
Source§fn clone(&self) -> CreateSourceRequest
fn clone(&self) -> CreateSourceRequest
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 CreateSourceRequest
impl Debug for CreateSourceRequest
Source§impl Default for CreateSourceRequest
impl Default for CreateSourceRequest
Source§fn default() -> CreateSourceRequest
fn default() -> CreateSourceRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateSourceRequest
impl Message for CreateSourceRequest
Source§impl PartialEq for CreateSourceRequest
impl PartialEq for CreateSourceRequest
impl StructuralPartialEq for CreateSourceRequest
Auto Trait Implementations§
impl Freeze for CreateSourceRequest
impl RefUnwindSafe for CreateSourceRequest
impl Send for CreateSourceRequest
impl Sync for CreateSourceRequest
impl Unpin for CreateSourceRequest
impl UnwindSafe for CreateSourceRequest
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