#[non_exhaustive]pub struct Pin {
pub file: PathBuf,
pub tool: Option<String>,
pub pattern_ids: Vec<String>,
pub patterns: Vec<PinPattern>,
pub package: String,
}Expand description
A file that serves a package version and must track it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: PathBufThe file, relative to the directory containing .ctl/.
tool: Option<String>A mise [tools] entry, in a file that parses as TOML. Its own
?ref=v… includes move with it.
pattern_ids: Vec<String>patterns ids this file lists, so the file a spelling belongs to is
written down instead of implied by table placement.
patterns: Vec<PinPattern>The patterns those ids name, filled in by Config::load, the only way
to build a pin that rewrites anything.
package: StringThe package whose version this file serves.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pin
impl<'de> Deserialize<'de> for Pin
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
Source§impl Validate for Pin
impl Validate for Pin
Source§fn validate_into(
&self,
config: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, config: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Forget for Pin
impl Freeze for Pinwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PinPattern>: Freeze,
impl Move for Pin
impl RefUnwindSafe for Pin
impl Send for Pinwhere
RawVecInner: Send,
impl Sync for Pinwhere
RawVecInner: Sync,
impl Unpin for Pin
impl UnsafeUnpin for Pinwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PinPattern>: UnsafeUnpin,
impl UnwindSafe for Pinwhere
RawVecInner: UnwindSafe,
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