pub struct Flockfile {
pub apps: Vec<AppConfig>,
}Expand description
A parsed Flockfile: the declared flock
Fields§
§apps: Vec<AppConfig>App entries in declaration order
Implementations§
Source§impl Flockfile
impl Flockfile
Sourcepub fn parse(source: &str, format: FlockFormat) -> Result<Self, FlockfileError>
pub fn parse(source: &str, format: FlockFormat) -> Result<Self, FlockfileError>
Parses Flockfile source text in the given format
§Errors
- Format variants (
FlockfileError::Tomletc.) — backend parse failure, carrying the backend’s message. Json5 additionally rejects sources nested past a depth of 64 before ever handing them to the backend parser (json5’s recursive-descent parser stack-overflows on deeply nested input rather than returning an error). FlockfileError::NoApps— parsed fine but declared no apps.
Trait Implementations§
impl Eq for Flockfile
impl StructuralPartialEq for Flockfile
Auto Trait Implementations§
impl Freeze for Flockfile
impl RefUnwindSafe for Flockfile
impl Send for Flockfile
impl Sync for Flockfile
impl Unpin for Flockfile
impl UnsafeUnpin for Flockfile
impl UnwindSafe for Flockfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.