pub struct Parser { /* private fields */ }
Implementations§
Source§impl Parser
impl Parser
Sourcepub fn new() -> Parser
pub fn new() -> Parser
loop_iter starts at 1 because it matches up with HTML heading numbers
e.g. h1
pub fn env_to_ts(&mut self, envs: Vec<Environment>)
Sourcepub fn loop_items(&mut self, items: &Vec<Item>)
pub fn loop_items(&mut self, items: &Vec<Item>)
Loops through items recursively, Postman doesn’t have a field for what type the item is, the item can be a request, response vector or a folder containing more nested items. Using Option<> to recursively loop, where the absence of a new nested item is the break point
Sourcepub fn write_to_disk(&self)
pub fn write_to_disk(&self)
Write files to static site, backup collection depending on config
pub fn backup_collection(&self, collection: &Collection, backup_path: String)
pub fn get_environment(&mut self) -> Vec<Environment>
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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