pub enum TemplateIdentity {
None(NoneIdentity),
Id(DefinitionId),
}Expand description
Template identity or the none sentinel (spec 034, 3.12.2).
The identity parser accepts only sha256: followed by 64 lowercase hex digits.
The TypeScript annotation preserves the disjoint prefix when schema patterns
would otherwise become an unconstrained string in generated declarations.
Variants§
None(NoneIdentity)
Id(DefinitionId)
Trait Implementations§
Source§impl Clone for TemplateIdentity
impl Clone for TemplateIdentity
Source§impl Debug for TemplateIdentity
impl Debug for TemplateIdentity
Source§impl<'de> Deserialize<'de> for TemplateIdentity
impl<'de> Deserialize<'de> for TemplateIdentity
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
impl Eq for TemplateIdentity
Source§impl JsonSchema for TemplateIdentity
impl JsonSchema for TemplateIdentity
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 TemplateIdentity
impl PartialEq for TemplateIdentity
Source§impl Serialize for TemplateIdentity
impl Serialize for TemplateIdentity
impl StructuralPartialEq for TemplateIdentity
Auto Trait Implementations§
impl Freeze for TemplateIdentity
impl RefUnwindSafe for TemplateIdentity
impl Send for TemplateIdentity
impl Sync for TemplateIdentity
impl Unpin for TemplateIdentity
impl UnsafeUnpin for TemplateIdentity
impl UnwindSafe for TemplateIdentity
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