Struct trustfall_core::ir::EdgeParameters
source · pub struct EdgeParameters { /* private fields */ }
Expand description
Parameter values for an edge expansion.
Passed as an argument to the Adapter::resolve_starting_vertices
and
Adapter::resolve_neighbors
functions. In those cases, the caller guarantees that
all edge parameters marked as required in the schema are included in
the EdgeParameters
value.
Implementations§
source§impl EdgeParameters
impl EdgeParameters
sourcepub fn get(&self, name: &str) -> Option<&FieldValue>
pub fn get(&self, name: &str) -> Option<&FieldValue>
Gets the value of the edge parameter by this name.
Returns None
if the edge parameter was not present.
Returns the default value if the query did not set a value but the edge parameter
defined a default value.
Trait Implementations§
source§impl Clone for EdgeParameters
impl Clone for EdgeParameters
source§fn clone(&self) -> EdgeParameters
fn clone(&self) -> EdgeParameters
Returns a copy 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 EdgeParameters
impl Debug for EdgeParameters
source§impl Default for EdgeParameters
impl Default for EdgeParameters
source§fn default() -> EdgeParameters
fn default() -> EdgeParameters
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EdgeParameters
impl<'de> Deserialize<'de> for EdgeParameters
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<'a> Index<&'a str> for EdgeParameters
impl<'a> Index<&'a str> for EdgeParameters
Enable indexing into EdgeParameters
values: parameters["param_name"]
source§impl PartialEq for EdgeParameters
impl PartialEq for EdgeParameters
source§fn eq(&self, other: &EdgeParameters) -> bool
fn eq(&self, other: &EdgeParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EdgeParameters
impl Serialize for EdgeParameters
source§impl<'a> TryIntoStruct for &'a EdgeParameters
impl<'a> TryIntoStruct for &'a EdgeParameters
type Error = Error
fn try_into_struct<S: DeserializeOwned>(self) -> Result<S, Error>
impl Eq for EdgeParameters
impl StructuralEq for EdgeParameters
impl StructuralPartialEq for EdgeParameters
Auto Trait Implementations§
impl RefUnwindSafe for EdgeParameters
impl Send for EdgeParameters
impl Sync for EdgeParameters
impl Unpin for EdgeParameters
impl UnwindSafe for EdgeParameters
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.