pub struct Ext<Main> { /* private fields */ }Implementations§
Source§impl<T> Ext<T>
impl<T> Ext<T>
pub fn new(main: T, extra: ExtraFields<ExtraValue>) -> Self
Source§impl<T> Ext<T>
impl<T> Ext<T>
pub fn inner(&self) -> &T
pub fn extra(&self) -> &ExtraFields<ExtraValue>
Trait Implementations§
Source§impl<'de, Main> Deserialize<'de> for Ext<Main>where
Main: Deserialize<'de>,
impl<'de, Main> Deserialize<'de> for Ext<Main>where
Main: Deserialize<'de>,
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<T: ManifestSourceOpt> ManifestSourceOpt for &Ext<T>
impl<T: ManifestSourceOpt> ManifestSourceOpt for &Ext<T>
Source§const MAY_BE_INCOMPLETE: bool = T::MAY_BE_INCOMPLETE
const MAY_BE_INCOMPLETE: bool = T::MAY_BE_INCOMPLETE
Possibly incomplete, that means that some of values could be
None.fn name(&self) -> Option<&str>
fn version(&self) -> Option<&str>
fn bundle_id(&self) -> Option<&str>
fn description(&self) -> Option<&str>
fn image_path(&self) -> Option<&str>
fn launch_sound_path(&self) -> Option<&str>
fn content_warning(&self) -> Option<&str>
fn content_warning2(&self) -> Option<&str>
fn build_number(&self) -> Option<usize>
fn override_with<'a, Over>(
&'a self,
over: &'a Over,
) -> impl ManifestSourceOpt + 'awhere
Over: ManifestSourceOpt,
Source§impl<T: ManifestSourceOpt> ManifestSourceOpt for Ext<T>
impl<T: ManifestSourceOpt> ManifestSourceOpt for Ext<T>
Source§const MAY_BE_INCOMPLETE: bool = true
const MAY_BE_INCOMPLETE: bool = true
Possibly incomplete, that means that some of values could be
None.fn name(&self) -> Option<&str>
fn version(&self) -> Option<&str>
fn bundle_id(&self) -> Option<&str>
fn description(&self) -> Option<&str>
fn image_path(&self) -> Option<&str>
fn launch_sound_path(&self) -> Option<&str>
fn content_warning(&self) -> Option<&str>
fn content_warning2(&self) -> Option<&str>
fn build_number(&self) -> Option<usize>
fn override_with<'a, Over>(
&'a self,
over: &'a Over,
) -> impl ManifestSourceOpt + 'awhere
Over: ManifestSourceOpt,
Source§impl<T: ManifestSourceOpt> ManifestSourceOptExt for Ext<T>
impl<T: ManifestSourceOpt> ManifestSourceOptExt for Ext<T>
const MAY_HAVE_EXTRA: bool = true
fn has_extra(&self) -> bool
fn iter_extra( &self, ) -> Option<impl IntoIterator<Item = (impl AsRef<str>, impl AsRef<ExtraValue>)>>
fn override_with_extra_ref<'t, Over>(
&'t self,
over: &'t Over,
) -> impl ManifestSourceOptExt + 'twhere
Over: ManifestSourceOptExt,
fn override_with_extra<Over: ManifestSourceOptExt>( &self, overrider: &Over, ) -> impl ManifestSourceOptExt + Cob<'static>
impl<Main> StructuralPartialEq for Ext<Main>
Auto Trait Implementations§
impl<Main> Freeze for Ext<Main>where
Main: Freeze,
impl<Main> RefUnwindSafe for Ext<Main>where
Main: RefUnwindSafe,
impl<Main> Send for Ext<Main>where
Main: Send,
impl<Main> Sync for Ext<Main>where
Main: Sync,
impl<Main> Unpin for Ext<Main>where
Main: Unpin,
impl<Main> UnwindSafe for Ext<Main>where
Main: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoManifest for Twhere
T: ManifestSourceOptExt,
impl<T> IntoManifest for Twhere
T: ManifestSourceOptExt,
Source§impl<T> ManifestFmt for Twhere
T: ManifestSourceOptExt,
impl<T> ManifestFmt for Twhere
T: ManifestSourceOptExt,
fn write_to<W: Write>(&self, to: &mut W) -> Result<()>where
Self: ManifestSourceOptExt,
fn write_to_fmt<W: Write>(&self, to: &mut W) -> Resultwhere
Self: ManifestSourceOptExt,
fn to_manifest_string(&self) -> Result<String, Error>where
Self: ManifestSourceOptExt,
Source§impl<T> Validate for Twhere
T: ManifestSourceOptExt,
impl<T> Validate for Twhere
T: ManifestSourceOptExt,
Source§fn validate(&self) -> impl IntoIterator<Item = Problem>
fn validate(&self) -> impl IntoIterator<Item = Problem>
Check critical requirements, returns it as errors.
Also returns warnings fo not so critical problems.
Use it before render the final result.