#[non_exhaustive]pub struct CreateEndpointRequest {
pub parent: String,
pub endpoint_id: String,
pub endpoint: Option<Endpoint>,
/* private fields */
}Expand description
The request message for RegistrationService.CreateEndpoint.
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 service that this endpoint provides.
endpoint_id: StringRequired. The Resource ID must be 1-63 characters long, and comply with
RFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
endpoint: Option<Endpoint>Required. A endpoint with initial fields set.
Implementations§
Source§impl CreateEndpointRequest
impl CreateEndpointRequest
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_endpoint_id<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint_id<T: Into<String>>(self, v: T) -> Self
Sets the value of endpoint_id.
§Example
ⓘ
let x = CreateEndpointRequest::new().set_endpoint_id("example");Sourcepub fn set_endpoint<T>(self, v: T) -> Self
pub fn set_endpoint<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_endpoint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_endpoint<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateEndpointRequest
impl Clone for CreateEndpointRequest
Source§fn clone(&self) -> CreateEndpointRequest
fn clone(&self) -> CreateEndpointRequest
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 CreateEndpointRequest
impl Debug for CreateEndpointRequest
Source§impl Default for CreateEndpointRequest
impl Default for CreateEndpointRequest
Source§fn default() -> CreateEndpointRequest
fn default() -> CreateEndpointRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateEndpointRequest
impl Message for CreateEndpointRequest
Source§impl PartialEq for CreateEndpointRequest
impl PartialEq for CreateEndpointRequest
impl StructuralPartialEq for CreateEndpointRequest
Auto Trait Implementations§
impl Freeze for CreateEndpointRequest
impl RefUnwindSafe for CreateEndpointRequest
impl Send for CreateEndpointRequest
impl Sync for CreateEndpointRequest
impl Unpin for CreateEndpointRequest
impl UnsafeUnpin for CreateEndpointRequest
impl UnwindSafe for CreateEndpointRequest
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