pub fn define_api<State, Types: NodeType>( options: &Options, ) -> Result<Api<State, Error, Version>, ApiError>where State: 'static + Send + Sync + ReadState, <State as ReadState>::State: Send + Sync + BuilderDataSource<Types>,