pub struct RenderedSurface {
pub json: String,
pub etag: String,
}Expand description
A document serialized once, with the strong ETag clients revalidate
against. Built at Harness::build for both the public and the admin
variant.
Fields§
§json: String§etag: StringQuoted strong validator: "<first 32 hex of sha256(json)>".
Implementations§
Source§impl RenderedSurface
impl RenderedSurface
pub fn render(document: &SurfaceDocument) -> Self
Trait Implementations§
Source§impl Clone for RenderedSurface
impl Clone for RenderedSurface
Auto Trait Implementations§
impl Freeze for RenderedSurface
impl RefUnwindSafe for RenderedSurface
impl Send for RenderedSurface
impl Sync for RenderedSurface
impl Unpin for RenderedSurface
impl UnsafeUnpin for RenderedSurface
impl UnwindSafe for RenderedSurface
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