#[non_exhaustive]pub struct CreateChallengeRequest {
pub parent: String,
pub challenge: Option<Challenge>,
/* private fields */
}Expand description
Message for creating a Challenge
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. The resource name of the location where the Challenge will be
used, in the format projects/*/locations/*.
challenge: Option<Challenge>Required. The Challenge to be created. Currently this field can be empty as all the Challenge fields are set by the server.
Implementations§
Source§impl CreateChallengeRequest
impl CreateChallengeRequest
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_challenge<T>(self, v: T) -> Self
pub fn set_challenge<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_challenge<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_challenge<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateChallengeRequest
impl Clone for CreateChallengeRequest
Source§fn clone(&self) -> CreateChallengeRequest
fn clone(&self) -> CreateChallengeRequest
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 CreateChallengeRequest
impl Debug for CreateChallengeRequest
Source§impl Default for CreateChallengeRequest
impl Default for CreateChallengeRequest
Source§fn default() -> CreateChallengeRequest
fn default() -> CreateChallengeRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateChallengeRequest
impl Message for CreateChallengeRequest
Source§impl PartialEq for CreateChallengeRequest
impl PartialEq for CreateChallengeRequest
impl StructuralPartialEq for CreateChallengeRequest
Auto Trait Implementations§
impl Freeze for CreateChallengeRequest
impl RefUnwindSafe for CreateChallengeRequest
impl Send for CreateChallengeRequest
impl Sync for CreateChallengeRequest
impl Unpin for CreateChallengeRequest
impl UnwindSafe for CreateChallengeRequest
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