pub struct SchemaParams {
pub method: Option<String>,
}Expand description
SYNAPSE-CC-9: the params of every activation’s schema method.
Fields§
§method: Option<String>One method’s schema instead of the whole activation’s.
Implementations§
Source§impl SchemaParams
impl SchemaParams
Sourcepub fn params_schema() -> Schema
pub fn params_schema() -> Schema
The params object as a method’s params carries it: the struct’s
schema without the document-level $schema, title and
description (a params object carries none; its properties do).
Trait Implementations§
Source§impl Clone for SchemaParams
impl Clone for SchemaParams
Source§impl Debug for SchemaParams
impl Debug for SchemaParams
Source§impl Default for SchemaParams
impl Default for SchemaParams
Source§impl<'de> Deserialize<'de> for SchemaParams
impl<'de> Deserialize<'de> for SchemaParams
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 SchemaParams
impl JsonSchema for SchemaParams
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 SchemaParams
impl PartialEq for SchemaParams
Source§impl Serialize for SchemaParams
impl Serialize for SchemaParams
impl StructuralPartialEq for SchemaParams
Auto Trait Implementations§
impl Forget for SchemaParams
impl Freeze for SchemaParams
impl Move for SchemaParams
impl RefUnwindSafe for SchemaParams
impl Send for SchemaParams
impl Sync for SchemaParams
impl Unpin for SchemaParams
impl UnsafeUnpin for SchemaParams
impl UnwindSafe for SchemaParams
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