pub struct FlakeRef {
pub type: FlakeRefType,
pub params: FlakeRefParameters,
/* private fields */
}
Expand description
The General Flake Ref Schema
Fields§
§type: FlakeRefType
§params: FlakeRefParameters
Implementations§
Source§impl FlakeRef
impl FlakeRef
pub fn new(type: FlakeRefType) -> Self
pub fn from<S>(input: S) -> Result<Self, NixUriError>
pub fn type(&mut self, type: FlakeRefType) -> &mut Self
pub fn id(&self) -> Option<String>
pub fn params(&mut self, params: FlakeRefParameters) -> &mut Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlakeRef
impl<'de> Deserialize<'de> for FlakeRef
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 FlakeRef
impl StructuralPartialEq for FlakeRef
Auto Trait Implementations§
impl Freeze for FlakeRef
impl RefUnwindSafe for FlakeRef
impl Send for FlakeRef
impl Sync for FlakeRef
impl Unpin for FlakeRef
impl UnwindSafe for FlakeRef
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