pub struct Scenario {
pub request: Request,
pub universe: Vec<Package>,
}
Expand description
Describes an APT EDSP scenario.
Fields§
§request: Request
The Request
stanza.
universe: Vec<Package>
The Package
stanzas comprising the package universe.
Implementations§
Source§impl Scenario
impl Scenario
Sourcepub fn read_from(reader: impl BufRead) -> Result<Self, ScenarioReadError>
pub fn read_from(reader: impl BufRead) -> Result<Self, ScenarioReadError>
Reads a Scenario
from the given reader
. On error, returns an ScenarioReadError
.
Auto Trait Implementations§
impl Freeze for Scenario
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnwindSafe for Scenario
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