pub enum TitleBinding {
Literal(String),
Binding(DataRef),
}Expand description
Bindable string value — either a literal or a runtime $data reference.
Used by Spec.title to permit either a static document title or a
runtime-resolved value from handler data. The renderer resolves
Binding(DataRef) against spec.data at response-build time.
Variants§
Trait Implementations§
Source§impl Clone for TitleBinding
impl Clone for TitleBinding
Source§fn clone(&self) -> TitleBinding
fn clone(&self) -> TitleBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TitleBinding
impl Debug for TitleBinding
Source§impl<'de> Deserialize<'de> for TitleBinding
impl<'de> Deserialize<'de> for TitleBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for TitleBinding
impl JsonSchema for TitleBinding
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TitleBinding
impl PartialEq for TitleBinding
Source§fn eq(&self, other: &TitleBinding) -> bool
fn eq(&self, other: &TitleBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TitleBinding
impl Serialize for TitleBinding
impl StructuralPartialEq for TitleBinding
Auto Trait Implementations§
impl Freeze for TitleBinding
impl RefUnwindSafe for TitleBinding
impl Send for TitleBinding
impl Sync for TitleBinding
impl Unpin for TitleBinding
impl UnsafeUnpin for TitleBinding
impl UnwindSafe for TitleBinding
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