pub struct ResolveConfig {
pub from: String,
pub via: Option<String>,
pub direction: String,
pub output_var: String,
}Expand description
Configuration for the resolve operator
Resolves an entity via its ID or by following a link through the LinkService.
- resolve:
from: target_id # field containing the entity ID
via: owns # optional: link type to follow
direction: reverse # forward (default) or reverse
as: owner # variable name to store the resolved entityFields§
§from: StringField in the event/context containing the entity ID to resolve from
via: Option<String>Optional link type to follow (if absent, resolves the entity directly by ID)
direction: StringDirection to follow the link: “forward” (default) or “reverse”
output_var: StringVariable name to store the resolved entity in the FlowContext
Trait Implementations§
Source§impl Clone for ResolveConfig
impl Clone for ResolveConfig
Source§fn clone(&self) -> ResolveConfig
fn clone(&self) -> ResolveConfig
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 ResolveConfig
impl Debug for ResolveConfig
Source§impl<'de> Deserialize<'de> for ResolveConfig
impl<'de> Deserialize<'de> for ResolveConfig
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
Auto Trait Implementations§
impl Freeze for ResolveConfig
impl RefUnwindSafe for ResolveConfig
impl Send for ResolveConfig
impl Sync for ResolveConfig
impl Unpin for ResolveConfig
impl UnsafeUnpin for ResolveConfig
impl UnwindSafe for ResolveConfig
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