pub struct NodeTerminalOutput { /* private fields */ }Expand description
Schema-pinned bounded output emitted by a terminal graph node.
Implementations§
Source§impl NodeTerminalOutput
impl NodeTerminalOutput
Sourcepub fn new(
schema: SchemaReference,
data: BoundedJson,
) -> Result<Self, NodeTerminalOutputError>
pub fn new( schema: SchemaReference, data: BoundedJson, ) -> Result<Self, NodeTerminalOutputError>
Constructs and checksums validated terminal output.
§Errors
Returns NodeTerminalOutputError::Integrity when canonicalization
fails.
Sourcepub fn restore(
schema: SchemaReference,
data: BoundedJson,
digest: Digest,
) -> Result<Self, NodeTerminalOutputError>
pub fn restore( schema: SchemaReference, data: BoundedJson, digest: Digest, ) -> Result<Self, NodeTerminalOutputError>
Restores durable output and verifies its checksum.
§Errors
Returns NodeTerminalOutputError for canonicalization failure or a
mismatched persisted digest.
Sourcepub const fn schema(&self) -> &SchemaReference
pub const fn schema(&self) -> &SchemaReference
Returns the graph output schema.
Sourcepub const fn data(&self) -> &BoundedJson
pub const fn data(&self) -> &BoundedJson
Returns bounded terminal output JSON.
Trait Implementations§
Source§impl Clone for NodeTerminalOutput
impl Clone for NodeTerminalOutput
Source§impl Debug for NodeTerminalOutput
impl Debug for NodeTerminalOutput
Source§impl<'de> Deserialize<'de> for NodeTerminalOutput
impl<'de> Deserialize<'de> for NodeTerminalOutput
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 NodeTerminalOutput
Source§impl JsonSchema for NodeTerminalOutput
impl JsonSchema for NodeTerminalOutput
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 NodeTerminalOutput
impl PartialEq for NodeTerminalOutput
Source§impl Serialize for NodeTerminalOutput
impl Serialize for NodeTerminalOutput
impl StructuralPartialEq for NodeTerminalOutput
Auto Trait Implementations§
impl Forget for NodeTerminalOutput
impl Freeze for NodeTerminalOutput
impl Move for NodeTerminalOutput
impl RefUnwindSafe for NodeTerminalOutput
impl Send for NodeTerminalOutput
impl Sync for NodeTerminalOutput
impl Unpin for NodeTerminalOutput
impl UnsafeUnpin for NodeTerminalOutput
impl UnwindSafe for NodeTerminalOutput
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