pub struct GraphReference { /* private fields */ }Expand description
Exact graph definition and state schema required to resume a checkpoint.
Implementations§
Source§impl GraphReference
impl GraphReference
Sourcepub const fn new(
identity: CapabilityIdentity,
definition_digest: Digest,
state_schema: SchemaReference,
) -> Self
pub const fn new( identity: CapabilityIdentity, definition_digest: Digest, state_schema: SchemaReference, ) -> Self
Constructs an immutable graph reference.
Sourcepub const fn identity(&self) -> &CapabilityIdentity
pub const fn identity(&self) -> &CapabilityIdentity
Returns the owner-qualified graph capability identity.
Sourcepub const fn definition_digest(&self) -> Digest
pub const fn definition_digest(&self) -> Digest
Returns the checksum of the canonical compiled graph definition.
Sourcepub const fn state_schema(&self) -> &SchemaReference
pub const fn state_schema(&self) -> &SchemaReference
Returns the exact schema required for checkpoint state.
Trait Implementations§
Source§impl Clone for GraphReference
impl Clone for GraphReference
Source§impl Debug for GraphReference
impl Debug for GraphReference
Source§impl<'de> Deserialize<'de> for GraphReference
impl<'de> Deserialize<'de> for GraphReference
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 GraphReference
Source§impl Hash for GraphReference
impl Hash for GraphReference
Source§impl JsonSchema for GraphReference
impl JsonSchema for GraphReference
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 GraphReference
impl PartialEq for GraphReference
Source§impl Serialize for GraphReference
impl Serialize for GraphReference
impl StructuralPartialEq for GraphReference
Auto Trait Implementations§
impl Forget for GraphReference
impl Freeze for GraphReference
impl Move for GraphReference
impl RefUnwindSafe for GraphReference
impl Send for GraphReference
impl Sync for GraphReference
impl Unpin for GraphReference
impl UnsafeUnpin for GraphReference
impl UnwindSafe for GraphReference
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