pub struct NamedArgType {
pub name: SmolStr,
pub ty: ArgType,
pub default: Option<ScalarValue>,
pub doc: String,
}Expand description
Named procedure argument.
Fields§
§name: SmolStrArgument name (as CALL fn(name => value)).
ty: ArgTypeArgument type.
default: Option<ScalarValue>Default value if omitted at call site.
doc: StringHuman-readable description.
Implementations§
Source§impl NamedArgType
impl NamedArgType
Sourcepub fn projection_config() -> Self
pub fn projection_config() -> Self
The optional trailing projection-config argument every GraphCompute
algorithm accepts ({nodeLabels, edgeTypes, projectAll, ...}).
Guest-loader algorithm signatures append this so coerce_config_json
accounts for the config object the CALL convention places after the
guest’s own arguments — the adapter strips it back off (via
GraphProjectionSpec::take_from_args) before invoking the guest. Without
it, declaring any typed args would reject every scoped CALL as having
one argument too many. Mirrors the first-party gcpagerank provider’s
trailing config arg; opaque (CypherValue) and defaulted (Null) so it
is always optional and accepts any projection object.
Trait Implementations§
Source§impl Clone for NamedArgType
impl Clone for NamedArgType
Source§fn clone(&self) -> NamedArgType
fn clone(&self) -> NamedArgType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for NamedArgType
impl !UnwindSafe for NamedArgType
impl Freeze for NamedArgType
impl Send for NamedArgType
impl Sync for NamedArgType
impl Unpin for NamedArgType
impl UnsafeUnpin for NamedArgType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more