pub struct DataSpec {
pub provider: String,
pub rows: Option<Vec<Value>>,
pub url: Option<String>,
pub endpoint: Option<String>,
}Expand description
Specification for fetching data.
Fields§
§provider: StringProvider type: “inline”, “http”, “api”, etc.
rows: Option<Vec<Value>>Inline rows (if provider is “inline”).
url: Option<String>URL for HTTP/API providers.
endpoint: Option<String>API endpoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataSpec
impl RefUnwindSafe for DataSpec
impl Send for DataSpec
impl Sync for DataSpec
impl Unpin for DataSpec
impl UnsafeUnpin for DataSpec
impl UnwindSafe for DataSpec
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