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