Struct ambient_guest_bridge::core::package::concepts::PackageOptional
source · pub struct PackageOptional {
pub description: Option<String>,
pub repository: Option<String>,
pub for_playables: Option<Vec<String>>,
}
Expand description
Optional part of Package.
Fields§
§description: Option<String>
Component: ambient_core::package::description
Component description: The description of the package. If not attached, the package does not have a description.
repository: Option<String>
Component: ambient_core::package::repository
Component description: The repository of the package. If not attached, the package does not have a repository.
for_playables: Option<Vec<String>>
Component: ambient_core::package::for_playables
Component description: The playable IDs that this package is for. This package must be a Mod
.
Trait Implementations§
source§impl Clone for PackageOptional
impl Clone for PackageOptional
source§fn clone(&self) -> PackageOptional
fn clone(&self) -> PackageOptional
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 Debug for PackageOptional
impl Debug for PackageOptional
source§impl Default for PackageOptional
impl Default for PackageOptional
source§fn default() -> PackageOptional
fn default() -> PackageOptional
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PackageOptional
impl<'de> Deserialize<'de> for PackageOptional
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PackageOptional, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PackageOptional, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PackageOptional
impl PartialEq for PackageOptional
source§fn eq(&self, other: &PackageOptional) -> bool
fn eq(&self, other: &PackageOptional) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PackageOptional
impl Serialize for PackageOptional
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PackageOptional
Auto Trait Implementations§
impl RefUnwindSafe for PackageOptional
impl Send for PackageOptional
impl Sync for PackageOptional
impl Unpin for PackageOptional
impl UnwindSafe for PackageOptional
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