pub fn from_api_str(api_str: &str) -> Self {
        use self::ExecutionNodeType::*;
        match api_str {
            EXECUTION_NODE_TYPE_SINGLETON_NODE => SingletonNode,
            EXECUTION_NODE_TYPE_ENUMERATE_COLLECTION_NODE => EnumerateCollectionNode,
            EXECUTION_NODE_TYPE_INDEX_NODE => IndexNode,
            EXECUTION_NODE_TYPE_ENUMERATE_LIST_NODE => EnumerateListNode,
            EXECUTION_NODE_TYPE_FILTER_NODE => FilterNode,
            EXECUTION_NODE_TYPE_LIMIT_NODE => LimitNode,
            EXECUTION_NODE_TYPE_CALCULATION_NODE => CalculationNode,
            EXECUTION_NODE_TYPE_SUBQUERY_NODE => SubQueryNode,
            EXECUTION_NODE_TYPE_SORT_NODE => SortNode,
            EXECUTION_NODE_TYPE_COLLECT_NODE => AggregateNode,
            EXECUTION_NODE_TYPE_RETURN_NODE => ReturnNode,
            EXECUTION_NODE_TYPE_INSERT_NODE => InsertNode,
            EXECUTION_NODE_TYPE_REMOVE_NODE => RemoveNode,
            EXECUTION_NODE_TYPE_REPLACE_NODE => ReplaceNode,
            EXECUTION_NODE_TYPE_UPDATE_NODE => UpdateNode,
            EXECUTION_NODE_TYPE_UPSERT_NODE => UpsertNode,
            EXECUTION_NODE_TYPE_NO_RESULTS_NODE => NoResultsNode,
            #[cfg(feature = "cluster")]
            EXECUTION_NODE_TYPE_SCATTER_NODE => ScatterNode,
            #[cfg(feature = "cluster")]
            EXECUTION_NODE_TYPE_GATHER_NODE => GatherNode,
            #[cfg(feature = "cluster")]
            EXECUTION_NODE_TYPE_DISTRIBUTE_NODE => DistributeNode,
            #[cfg(feature = "cluster")]
            EXECUTION_NODE_TYPE_REMOTE_NODE => RemoteNode,
            node => Unlisted(node.to_owned()),
        }
    }
/// Constructs an execution node from the string slice as used in the
/// *ArangoDB* API.
Constructs an execution node from the string slice as used in the
ArangoDB* API.
Constructs an execution node from the string slice as used in the ArangoDB * API .
pub fn from_api_str(api_str: &str) -> Self {
        use self::ExecutionNodeType::*;
        match api_str {
            EXECUTION_NODE_TYPE_SINGLETON_NODE => SingletonNode,
            EXECUTION_NODE_TYPE_ENUMERATE_COLLECTION_NODE => EnumerateCollectionNode,
            EXECUTION_NODE_TYPE_INDEX_NODE => IndexNode,
            EXECUTION_NODE_TYPE_ENUMERATE_LIST_NODE => EnumerateListNode,
            EXECUTION_NODE_TYPE_FILTER_NODE => FilterNode,
            EXECUTION_NODE_TYPE_LIMIT_NODE => LimitNode,
            EXECUTION_NODE_TYPE_CALCULATION_NODE => CalculationNode,
            EXECUTION_NODE_TYPE_SUBQUERY_NODE => SubQueryNode,
            EXECUTION_NODE_TYPE_SORT_NODE => SortNode,
            EXECUTION_NODE_TYPE_COLLECT_NODE => AggregateNode,
            EXECUTION_NODE_TYPE_RETURN_NODE => ReturnNode,
            EXECUTION_NODE_TYPE_INSERT_NODE => InsertNode,
            EXECUTION_NODE_TYPE_REMOVE_NODE => RemoveNode,
            EXECUTION_NODE_TYPE_REPLACE_NODE => ReplaceNode,
            EXECUTION_NODE_TYPE_UPDATE_NODE => UpdateNode,
            EXECUTION_NODE_TYPE_UPSERT_NODE => UpsertNode,
            EXECUTION_NODE_TYPE_NO_RESULTS_NODE => NoResultsNode,
            #[cfg(feature = "cluster")]
            EXECUTION_NODE_TYPE_SCATTER_NODE => ScatterNode,
            #[cfg(feature = "cluster")]
            EXECUTION_NODE_TYPE_GATHER_NODE => GatherNode,
            #[cfg(feature = "cluster")]
            EXECUTION_NODE_TYPE_DISTRIBUTE_NODE => DistributeNode,
            #[cfg(feature = "cluster")]
            EXECUTION_NODE_TYPE_REMOTE_NODE => RemoteNode,
            node => Unlisted(node.to_owned()),
        }
    }
pub fn from_api_str ( api_str : & str ) -> Self { use self :: ExecutionNodeType :: * ; match api_str { EXECUTION_NODE_TYPE_SINGLETON_NODE => SingletonNode , EXECUTION_NODE_TYPE_ENUMERATE_COLLECTION_NODE => EnumerateCollectionNode , EXECUTION_NODE_TYPE_INDEX_NODE => IndexNode , EXECUTION_NODE_TYPE_ENUMERATE_LIST_NODE => EnumerateListNode , EXECUTION_NODE_TYPE_FILTER_NODE => FilterNode , EXECUTION_NODE_TYPE_LIMIT_NODE => LimitNode , EXECUTION_NODE_TYPE_CALCULATION_NODE => CalculationNode , EXECUTION_NODE_TYPE_SUBQUERY_NODE => SubQueryNode , EXECUTION_NODE_TYPE_SORT_NODE => SortNode , EXECUTION_NODE_TYPE_COLLECT_NODE => AggregateNode , EXECUTION_NODE_TYPE_RETURN_NODE => ReturnNode , EXECUTION_NODE_TYPE_INSERT_NODE => InsertNode , EXECUTION_NODE_TYPE_REMOVE_NODE => RemoveNode , EXECUTION_NODE_TYPE_REPLACE_NODE => ReplaceNode , EXECUTION_NODE_TYPE_UPDATE_NODE => UpdateNode , EXECUTION_NODE_TYPE_UPSERT_NODE => UpsertNode , EXECUTION_NODE_TYPE_NO_RESULTS_NODE => NoResultsNode , # [ cfg ( feature " " ) ] EXECUTION_NODE_TYPE_SCATTER_NODE => ScatterNode , # [ cfg ( feature " " ) ] EXECUTION_NODE_TYPE_GATHER_NODE => GatherNode , # [ cfg ( feature " " ) ] EXECUTION_NODE_TYPE_DISTRIBUTE_NODE => DistributeNode , # [ cfg ( feature " " ) ] EXECUTION_NODE_TYPE_REMOTE_NODE => RemoteNode , node => Unlisted ( node . to_owned ( ) ) , } }
Constructs an execution node from the string slice as used in the
ArangoDB* API.
Constructs an execution node from the string slice as used in the ArangoDB * API .
api_str
&str
api_str
&str