#[non_exhaustive]pub struct GetRoutePolicyRequest {
pub policy: Option<String>,
pub project: String,
pub region: String,
pub router: String,
/* private fields */
}Available on crate feature
routers only.Expand description
Synthetic request message for the getRoutePolicy() method.
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.policy: Option<String>The Policy name for this request. Name must conform to RFC1035
project: StringProject ID for this request.
region: StringName of the region for this request.
router: StringName of the Router resource to query for the route policy. The name should conform to RFC1035.
Implementations§
Source§impl GetRoutePolicyRequest
impl GetRoutePolicyRequest
pub fn new() -> Self
Sourcepub fn set_policy<T>(self, v: T) -> Self
pub fn set_policy<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_policy<T>(self, v: Option<T>) -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GetRoutePolicyRequest
impl Clone for GetRoutePolicyRequest
Source§fn clone(&self) -> GetRoutePolicyRequest
fn clone(&self) -> GetRoutePolicyRequest
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 GetRoutePolicyRequest
impl Debug for GetRoutePolicyRequest
Source§impl Default for GetRoutePolicyRequest
impl Default for GetRoutePolicyRequest
Source§fn default() -> GetRoutePolicyRequest
fn default() -> GetRoutePolicyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetRoutePolicyRequest
impl PartialEq for GetRoutePolicyRequest
impl StructuralPartialEq for GetRoutePolicyRequest
Auto Trait Implementations§
impl Freeze for GetRoutePolicyRequest
impl RefUnwindSafe for GetRoutePolicyRequest
impl Send for GetRoutePolicyRequest
impl Sync for GetRoutePolicyRequest
impl Unpin for GetRoutePolicyRequest
impl UnwindSafe for GetRoutePolicyRequest
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