Enum protos::categories::Categories
source · pub enum Categories {
Text(TextCategories),
Trait(Option<ShardsTrait>),
Shards(ShardsScriptInfo),
Audio(AudioCategories),
Texture(TextureCategories),
Vector(VectorCategories),
Video(VideoCategories),
Model(ModelCategories),
Binary(BinaryCategories),
}
Expand description
Types of categories that can be attached to a Proto-Fragment to describe it (e.g Code, Audio, Video etc.)
Variants§
Text(TextCategories)
Text of the supported sub-categories
Trait(Option<ShardsTrait>)
A Scripting Trait declaration, traits are unique, and are used to describe how Shards work (Scripts) Name, Description, and unique trait ID None is meant to be used in Fragnova protos when uploading and RPCs mainly.
Shards(ShardsScriptInfo)
Shards scripts of various sub-categories Shards use interoperability traits to describe how they can be used in other shards
Audio(AudioCategories)
Audio files and effects
Texture(TextureCategories)
Textures of the supported sub-categories
Vector(VectorCategories)
Vectors of the supported sub-categories (e.g. SVG, Font)
Video(VideoCategories)
Video file of the supported formats
Model(ModelCategories)
2d/3d models of the supported formats
Binary(BinaryCategories)
Binary of the supported sub-categories
Trait Implementations§
source§impl Clone for Categories
impl Clone for Categories
source§fn clone(&self) -> Categories
fn clone(&self) -> Categories
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 Categories
impl Debug for Categories
source§impl Decode for Categories
impl Decode for Categories
source§impl<'de> Deserialize<'de> for Categories
impl<'de> Deserialize<'de> for Categories
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 Encode for Categories
impl Encode for Categories
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl PartialEq<Categories> for Categories
impl PartialEq<Categories> for Categories
source§fn eq(&self, other: &Categories) -> bool
fn eq(&self, other: &Categories) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.