pub struct GraphSchema {
pub graph_id: String,
pub input_schema: Option<Value>,
pub output_schema: Option<Value>,
pub state_schema: Value,
pub config_schema: Option<Value>,
pub context_schema: Option<Value>,
}Expand description
GraphSchema : Defines the structure and properties of a graph.
Fields§
§graph_id: StringThe ID of the graph.
input_schema: Option<Value>The schema for the graph input. Missing if unable to generate JSON schema from graph.
output_schema: Option<Value>The schema for the graph output. Missing if unable to generate JSON schema from graph.
state_schema: ValueThe schema for the graph state. Missing if unable to generate JSON schema from graph.
config_schema: Option<Value>The schema for the graph config. Missing if unable to generate JSON schema from graph.
context_schema: Option<Value>The schema for the graph context. Missing if unable to generate JSON schema from graph.
Implementations§
Source§impl GraphSchema
impl GraphSchema
Sourcepub fn new(graph_id: String, state_schema: Value) -> GraphSchema
pub fn new(graph_id: String, state_schema: Value) -> GraphSchema
Defines the structure and properties of a graph.
Trait Implementations§
Source§impl Clone for GraphSchema
impl Clone for GraphSchema
Source§fn clone(&self) -> GraphSchema
fn clone(&self) -> GraphSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 GraphSchema
impl Debug for GraphSchema
Source§impl Default for GraphSchema
impl Default for GraphSchema
Source§fn default() -> GraphSchema
fn default() -> GraphSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphSchema
impl<'de> Deserialize<'de> for GraphSchema
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 PartialEq for GraphSchema
impl PartialEq for GraphSchema
Source§impl Serialize for GraphSchema
impl Serialize for GraphSchema
impl StructuralPartialEq for GraphSchema
Auto Trait Implementations§
impl Freeze for GraphSchema
impl RefUnwindSafe for GraphSchema
impl Send for GraphSchema
impl Sync for GraphSchema
impl Unpin for GraphSchema
impl UnwindSafe for GraphSchema
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