pub struct SourceDef {
pub id: String,
pub display_name: Option<String>,
pub roots: Vec<String>,
pub globs: Vec<String>,
pub format: String,
pub parser_hint: Option<String>,
pub platforms: Option<Vec<String>>,
pub requires_opt_in: Option<bool>,
}Fields§
§id: String§display_name: Option<String>§roots: Vec<String>§globs: Vec<String>§format: String§parser_hint: Option<String>§platforms: Option<Vec<String>>§requires_opt_in: Option<bool>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SourceDef
impl<'de> Deserialize<'de> for SourceDef
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
Auto Trait Implementations§
impl Freeze for SourceDef
impl RefUnwindSafe for SourceDef
impl Send for SourceDef
impl Sync for SourceDef
impl Unpin for SourceDef
impl UnsafeUnpin for SourceDef
impl UnwindSafe for SourceDef
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