pub enum SchemaResult {
Plugin(PluginSchema),
Method(MethodSchema),
}Expand description
Result of a schema query - either full plugin or single method
Variants§
Plugin(PluginSchema)
Full plugin schema (when no method specified)
Method(MethodSchema)
Single method schema (when method specified)
Implementations§
Source§impl SchemaResult
impl SchemaResult
Sourcepub fn fill_site_hints(&mut self, site: &AttachmentSite)
pub fn fill_site_hints(&mut self, site: &AttachmentSite)
CA-1: fill site_hints across whichever schema shape this result
carries — see PluginSchema::fill_site_hints.
Trait Implementations§
Source§impl Clone for SchemaResult
impl Clone for SchemaResult
Source§impl Debug for SchemaResult
impl Debug for SchemaResult
Source§impl<'de> Deserialize<'de> for SchemaResult
impl<'de> Deserialize<'de> for SchemaResult
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 SchemaResult
impl JsonSchema for SchemaResult
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 moreAuto Trait Implementations§
impl Freeze for SchemaResult
impl RefUnwindSafe for SchemaResult
impl Send for SchemaResult
impl Sync for SchemaResult
impl Unpin for SchemaResult
impl UnsafeUnpin for SchemaResult
impl UnwindSafe for SchemaResult
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