#[non_exhaustive]pub struct RoutersPreviewResponse {
pub resource: Option<Router>,
/* private fields */
}Available on crate feature
routers only.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.resource: Option<Router>Preview of given router.
Implementations§
Source§impl RoutersPreviewResponse
impl RoutersPreviewResponse
pub fn new() -> Self
Sourcepub fn set_resource<T>(self, v: T) -> Self
pub fn set_resource<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_resource<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_resource<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for RoutersPreviewResponse
impl Clone for RoutersPreviewResponse
Source§fn clone(&self) -> RoutersPreviewResponse
fn clone(&self) -> RoutersPreviewResponse
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 RoutersPreviewResponse
impl Debug for RoutersPreviewResponse
Source§impl Default for RoutersPreviewResponse
impl Default for RoutersPreviewResponse
Source§fn default() -> RoutersPreviewResponse
fn default() -> RoutersPreviewResponse
Returns the “default value” for a type. Read more
Source§impl Message for RoutersPreviewResponse
impl Message for RoutersPreviewResponse
Source§impl PartialEq for RoutersPreviewResponse
impl PartialEq for RoutersPreviewResponse
impl StructuralPartialEq for RoutersPreviewResponse
Auto Trait Implementations§
impl Freeze for RoutersPreviewResponse
impl RefUnwindSafe for RoutersPreviewResponse
impl Send for RoutersPreviewResponse
impl Sync for RoutersPreviewResponse
impl Unpin for RoutersPreviewResponse
impl UnwindSafe for RoutersPreviewResponse
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