pub struct Fragment(pub TestResponse);Expand description
A boosted-navigation response.
Tuple Fields§
§0: TestResponseImplementations§
Source§impl Fragment
impl Fragment
pub fn status(&self) -> StatusCode
Sourcepub fn payload(&self) -> Value
pub fn payload(&self) -> Value
The parsed payload — html, title, meta, scripts,
styles, maxAge.
Sourcepub fn html(&self) -> String
pub fn html(&self) -> String
The outlet contents. This is the assertion that matters: a fragment carrying a whole document would mean the shell gets nested inside itself on every soft navigation.
pub fn title(&self) -> Option<String>
pub fn assert_ok(&self) -> &Self
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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