pub struct SourceSelection {
pub root: RelativePath,
pub paths: Vec<RelativePath>,
}Expand description
Which sources a request selects, and the root they are measured from.
The root is carried, never recomputed. Module names are derived relative to
it, and recovering it from the files gets it wrong: a selection of
models/domain/customer.gleam has no src segment, so a provider guessing
a root falls through to the basename and names the module customer
instead of domain/customer.
Fields§
§root: RelativePathThe root the selected paths are measured from, relative to the development root.
paths: Vec<RelativePath>The selected sources, relative to the development root, in the order the caller gave them.
Trait Implementations§
Source§impl Clone for SourceSelection
impl Clone for SourceSelection
Source§impl Debug for SourceSelection
impl Debug for SourceSelection
Source§impl<'de> Deserialize<'de> for SourceSelection
impl<'de> Deserialize<'de> for SourceSelection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceSelection
Source§impl PartialEq for SourceSelection
impl PartialEq for SourceSelection
Source§impl Serialize for SourceSelection
impl Serialize for SourceSelection
impl StructuralPartialEq for SourceSelection
Auto Trait Implementations§
impl Freeze for SourceSelection
impl RefUnwindSafe for SourceSelection
impl Send for SourceSelection
impl Sync for SourceSelection
impl Unpin for SourceSelection
impl UnsafeUnpin for SourceSelection
impl UnwindSafe for SourceSelection
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