Trait rant::data::DataSource [−][src]
pub trait DataSource: Debug { fn request_data(&self, args: Vec<RantValue>) -> DataSourceResult<RantValue>; }
Trait for defining a Rant data source type.
Security
This trait can potentially be used to grant Rant access to network, filesystem, or other sensitive resources. Please take care to ensure that such access is adequately sandboxed, has granular permissions, and that failed access to such resources is handled gracefully.
Required methods
fn request_data(&self, args: Vec<RantValue>) -> DataSourceResult<RantValue>
[src]
Requests some data from the data source.