pub struct ViewContextState {
pub context: String,
pub revision: String,
pub views: String,
pub system_data: Map<String, Value>,
pub shared_data: Map<String, Value>,
pub routes: Vec<Value>,
pub links: BTreeMap<String, Value>,
pub contexts: BTreeMap<String, Value>,
pub primary: String,
}Expand description
Payload returned by GET /_saola/context/{context}, matching ViewContextController.
Fields§
§context: String§revision: String§views: String§system_data: Map<String, Value>§routes: Vec<Value>§links: BTreeMap<String, Value>§contexts: BTreeMap<String, Value>§primary: StringImplementations§
Trait Implementations§
Source§impl Clone for ViewContextState
impl Clone for ViewContextState
Source§impl Debug for ViewContextState
impl Debug for ViewContextState
Source§impl IntoResponse for ViewContextState
impl IntoResponse for ViewContextState
Source§fn with_status(self, status: impl IntoStatusCode) -> Response
fn with_status(self, status: impl IntoStatusCode) -> Response
Send a cookie with this response, replacing any cookie the response already sends with the
same name, path, and domain. Read more
Source§fn with_header<K, V>(self, name: K, value: V) -> Response
fn with_header<K, V>(self, name: K, value: V) -> Response
Send a header with the response, replacing any header with the same name. A name or value
that isn’t a valid header makes the response a
500 error.Source§fn with_headers<K, V>(
self,
headers: impl IntoIterator<Item = (K, V)>,
) -> Response
fn with_headers<K, V>( self, headers: impl IntoIterator<Item = (K, V)>, ) -> Response
Send several headers with the response, each replacing any header with the same name. A
name or value that isn’t a valid header makes the response a
500 error.Auto Trait Implementations§
impl Forget for ViewContextState
impl Freeze for ViewContextStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for ViewContextState
impl RefUnwindSafe for ViewContextState
impl Send for ViewContextState
impl Sync for ViewContextState
impl Unpin for ViewContextState
impl UnsafeUnpin for ViewContextStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ViewContextState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoViewData for Twhere
T: Serialize,
impl<T> IntoViewData for Twhere
T: Serialize,
Source§fn into_view_data(self) -> ViewData
fn into_view_data(self) -> ViewData
Converts the value into view data.