[][src]Struct nature_db::RelationSettings

pub struct RelationSettings {
    pub selector: Option<FlowSelector>,
    pub executor: Option<Executor>,
    pub filter_before: Vec<Executor>,
    pub filter_after: Vec<Executor>,
    pub use_upstream_id: bool,
    pub target: RelationTarget,
    pub delay: i32,
    pub delay_on_para: (i32, u8),
    pub id_bridge: bool,
}

Fields

selector: Option<FlowSelector>executor: Option<Executor>

array executor will share the convert task

filter_before: Vec<Executor>

filter will execute before executor,

filter_after: Vec<Executor>

filter will execute after executor,

use_upstream_id: bool

if the downstream is state meta, when is_main is set to true, the upstream's id will be used as downstream's id

target: RelationTargetdelay: i32

delay seconds to execute the converter

delay_on_para: (i32, u8)

delay seconds to execute the converter based on Instance.para

  • first value : how long to delay
  • second value : time part based on of the Instance.para
id_bridge: bool

if this relation's next target will use the upstream's id please set this property to true

Trait Implementations

impl Clone for RelationSettings[src]

impl Debug for RelationSettings[src]

impl Default for RelationSettings[src]

impl<'de> Deserialize<'de> for RelationSettings[src]

impl Eq for RelationSettings[src]

impl PartialEq<RelationSettings> for RelationSettings[src]

impl Serialize for RelationSettings[src]

impl StructuralEq for RelationSettings[src]

impl StructuralPartialEq for RelationSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,