pub struct Pack {
pub name: String,
pub pack_type: PackType,
pub version: Version,
pub tool: Option<String>,
pub metadata: PackMetadata,
pub scope: InstallScope,
}Fields§
§name: String§pack_type: PackType§version: Version§tool: Option<String>§metadata: PackMetadata§scope: InstallScopeImplementations§
Source§impl Pack
impl Pack
pub fn new( name: impl Into<String>, pack_type: PackType, version: Version, ) -> Self
pub fn with_tool(self, tool: impl Into<String>) -> Self
pub fn with_metadata(self, metadata: PackMetadata) -> Self
pub fn with_scope(self, scope: InstallScope) -> Self
pub fn id(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pack
impl<'de> Deserialize<'de> for Pack
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 Pack
impl RefUnwindSafe for Pack
impl Send for Pack
impl Sync for Pack
impl Unpin for Pack
impl UnsafeUnpin for Pack
impl UnwindSafe for Pack
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