pub struct RestFormat {
pub requests: Vec<RestRequest>,
pub variables: IndexMap<String, Template>,
pub flavor: RestFlavor,
}Expand description
A basic representaion of the REST format
Fields§
§requests: Vec<RestRequest>A list of recipes
variables: IndexMap<String, Template>Variables used for templating
flavor: RestFlavorThe specific flavor of REST format (VSCode, Jetbrains, etc.)
Implementations§
Source§impl RestFormat
impl RestFormat
pub fn parse_file(path: impl AsRef<Path>) -> Result<Self>
pub fn parse(text: &str, flavor: RestFlavor) -> Result<Self>
Trait Implementations§
Source§impl Clone for RestFormat
impl Clone for RestFormat
Source§fn clone(&self) -> RestFormat
fn clone(&self) -> RestFormat
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestFormat
impl Debug for RestFormat
Source§impl Default for RestFormat
impl Default for RestFormat
Source§fn default() -> RestFormat
fn default() -> RestFormat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RestFormat
impl RefUnwindSafe for RestFormat
impl Send for RestFormat
impl Sync for RestFormat
impl Unpin for RestFormat
impl UnwindSafe for RestFormat
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