pub struct ParsableStruct<T>(/* private fields */)
where
T: FromStr;
Expand description
A struct that can be parsed from a string
Trait Implementations§
Source§impl<T> Clone for ParsableStruct<T>
impl<T> Clone for ParsableStruct<T>
Source§fn clone(&self) -> ParsableStruct<T>
fn clone(&self) -> ParsableStruct<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for ParsableStruct<T>
impl<T> Debug for ParsableStruct<T>
Source§impl<T> Default for ParsableStruct<T>
impl<T> Default for ParsableStruct<T>
Source§fn default() -> ParsableStruct<T>
fn default() -> ParsableStruct<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for ParsableStruct<T>
impl<'de, T> Deserialize<'de> for ParsableStruct<T>
Source§fn deserialize<D>(deserializer: D) -> Result<ParsableStruct<T>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ParsableStruct<T>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ParsableStruct<AddGitRepoPatch>> for AddGitRepo
impl From<ParsableStruct<AddGitRepoPatch>> for AddGitRepo
Source§fn from(value: ParsableStruct<AddGitRepoPatch>) -> Self
fn from(value: ParsableStruct<AddGitRepoPatch>) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<AddPatch>> for Add
impl From<ParsableStruct<AddPatch>> for Add
Source§fn from(value: ParsableStruct<AddPatch>) -> Self
fn from(value: ParsableStruct<AddPatch>) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<BindPatch>> for Bind
impl From<ParsableStruct<BindPatch>> for Bind
Source§fn from(value: ParsableStruct<BindPatch>) -> Self
fn from(value: ParsableStruct<BindPatch>) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<CachePatch>> for Cache
impl From<ParsableStruct<CachePatch>> for Cache
Source§fn from(value: ParsableStruct<CachePatch>) -> Self
fn from(value: ParsableStruct<CachePatch>) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<CopyPatch>> for Copy
impl From<ParsableStruct<CopyPatch>> for Copy
Source§fn from(value: ParsableStruct<CopyPatch>) -> Self
fn from(value: ParsableStruct<CopyPatch>) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<CopyResourcePatch>> for CopyResource
impl From<ParsableStruct<CopyResourcePatch>> for CopyResource
Source§fn from(value: ParsableStruct<CopyResourcePatch>) -> Self
fn from(value: ParsableStruct<CopyResourcePatch>) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<ImageNamePatch>> for ImageName
impl From<ParsableStruct<ImageNamePatch>> for ImageName
Source§fn from(value: ParsableStruct<ImageNamePatch>) -> Self
fn from(value: ParsableStruct<ImageNamePatch>) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<PortPatch>> for Port
impl From<ParsableStruct<PortPatch>> for Port
Source§fn from(value: ParsableStruct<PortPatch>) -> Self
fn from(value: ParsableStruct<PortPatch>) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<UserPatch>> for User
impl From<ParsableStruct<UserPatch>> for User
Source§fn from(value: ParsableStruct<UserPatch>) -> Self
fn from(value: ParsableStruct<UserPatch>) -> Self
Converts to this type from the input type.
Source§impl<T: FromStr> From<T> for ParsableStruct<T>
impl<T: FromStr> From<T> for ParsableStruct<T>
Source§impl<T> Merge for ParsableStruct<T>
impl<T> Merge for ParsableStruct<T>
Source§impl<T> PartialEq for ParsableStruct<T>
impl<T> PartialEq for ParsableStruct<T>
Source§impl Patch<ParsableStruct<AddGitRepoPatch>> for AddGitRepo
impl Patch<ParsableStruct<AddGitRepoPatch>> for AddGitRepo
Source§fn apply(&mut self, patch: ParsableStruct<AddGitRepoPatch>)
fn apply(&mut self, patch: ParsableStruct<AddGitRepoPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<AddGitRepoPatch>
fn into_patch(self) -> ParsableStruct<AddGitRepoPatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(
self,
previous_struct: Self,
) -> ParsableStruct<AddGitRepoPatch>
fn into_patch_by_diff( self, previous_struct: Self, ) -> ParsableStruct<AddGitRepoPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<AddGitRepoPatch>
fn new_empty_patch() -> ParsableStruct<AddGitRepoPatch>
Get an empty patch instance
Source§impl Patch<ParsableStruct<AddPatch>> for Add
impl Patch<ParsableStruct<AddPatch>> for Add
Source§fn apply(&mut self, patch: ParsableStruct<AddPatch>)
fn apply(&mut self, patch: ParsableStruct<AddPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<AddPatch>
fn into_patch(self) -> ParsableStruct<AddPatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<AddPatch>
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<AddPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<AddPatch>
fn new_empty_patch() -> ParsableStruct<AddPatch>
Get an empty patch instance
Source§impl Patch<ParsableStruct<BindPatch>> for Bind
impl Patch<ParsableStruct<BindPatch>> for Bind
Source§fn apply(&mut self, patch: ParsableStruct<BindPatch>)
fn apply(&mut self, patch: ParsableStruct<BindPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<BindPatch>
fn into_patch(self) -> ParsableStruct<BindPatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<BindPatch>
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<BindPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<BindPatch>
fn new_empty_patch() -> ParsableStruct<BindPatch>
Get an empty patch instance
Source§impl Patch<ParsableStruct<CachePatch>> for Cache
impl Patch<ParsableStruct<CachePatch>> for Cache
Source§fn apply(&mut self, patch: ParsableStruct<CachePatch>)
fn apply(&mut self, patch: ParsableStruct<CachePatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<CachePatch>
fn into_patch(self) -> ParsableStruct<CachePatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<CachePatch>
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<CachePatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<CachePatch>
fn new_empty_patch() -> ParsableStruct<CachePatch>
Get an empty patch instance
Source§impl Patch<ParsableStruct<CopyPatch>> for Copy
impl Patch<ParsableStruct<CopyPatch>> for Copy
Source§fn apply(&mut self, patch: ParsableStruct<CopyPatch>)
fn apply(&mut self, patch: ParsableStruct<CopyPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<CopyPatch>
fn into_patch(self) -> ParsableStruct<CopyPatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<CopyPatch>
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<CopyPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<CopyPatch>
fn new_empty_patch() -> ParsableStruct<CopyPatch>
Get an empty patch instance
Source§impl Patch<ParsableStruct<CopyResourcePatch>> for CopyResource
impl Patch<ParsableStruct<CopyResourcePatch>> for CopyResource
Source§fn apply(&mut self, patch: ParsableStruct<CopyResourcePatch>)
fn apply(&mut self, patch: ParsableStruct<CopyResourcePatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<CopyResourcePatch>
fn into_patch(self) -> ParsableStruct<CopyResourcePatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(
self,
previous_struct: Self,
) -> ParsableStruct<CopyResourcePatch>
fn into_patch_by_diff( self, previous_struct: Self, ) -> ParsableStruct<CopyResourcePatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<CopyResourcePatch>
fn new_empty_patch() -> ParsableStruct<CopyResourcePatch>
Get an empty patch instance
Source§impl Patch<ParsableStruct<ImageNamePatch>> for ImageName
impl Patch<ParsableStruct<ImageNamePatch>> for ImageName
Source§fn apply(&mut self, patch: ParsableStruct<ImageNamePatch>)
fn apply(&mut self, patch: ParsableStruct<ImageNamePatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<ImageNamePatch>
fn into_patch(self) -> ParsableStruct<ImageNamePatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(
self,
previous_struct: Self,
) -> ParsableStruct<ImageNamePatch>
fn into_patch_by_diff( self, previous_struct: Self, ) -> ParsableStruct<ImageNamePatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<ImageNamePatch>
fn new_empty_patch() -> ParsableStruct<ImageNamePatch>
Get an empty patch instance
Source§impl Patch<ParsableStruct<PortPatch>> for Port
impl Patch<ParsableStruct<PortPatch>> for Port
Source§fn apply(&mut self, patch: ParsableStruct<PortPatch>)
fn apply(&mut self, patch: ParsableStruct<PortPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<PortPatch>
fn into_patch(self) -> ParsableStruct<PortPatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<PortPatch>
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<PortPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<PortPatch>
fn new_empty_patch() -> ParsableStruct<PortPatch>
Get an empty patch instance
Source§impl Patch<ParsableStruct<UserPatch>> for User
impl Patch<ParsableStruct<UserPatch>> for User
Source§fn apply(&mut self, patch: ParsableStruct<UserPatch>)
fn apply(&mut self, patch: ParsableStruct<UserPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<UserPatch>
fn into_patch(self) -> ParsableStruct<UserPatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<UserPatch>
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<UserPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<UserPatch>
fn new_empty_patch() -> ParsableStruct<UserPatch>
Get an empty patch instance
impl<T> StructuralPartialEq for ParsableStruct<T>where
T: FromStr,
Auto Trait Implementations§
impl<T> Freeze for ParsableStruct<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParsableStruct<T>where
T: RefUnwindSafe,
impl<T> Send for ParsableStruct<T>where
T: Send,
impl<T> Sync for ParsableStruct<T>where
T: Sync,
impl<T> Unpin for ParsableStruct<T>where
T: Unpin,
impl<T> UnwindSafe for ParsableStruct<T>where
T: 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