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
sourceimpl Clone for Categories
impl Clone for Categories
sourcefn clone(&self) -> Categories
fn clone(&self) -> Categories
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Categories
impl Debug for Categories
sourceimpl Decode for Categories
impl Decode for Categories
sourcefn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.
sourcefn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
sourcefn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
sourceimpl<'de> Deserialize<'de> for Categories
impl<'de> Deserialize<'de> for Categories
sourcefn 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
sourceimpl Encode for Categories
impl Encode for Categories
sourcefn 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.
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn 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.
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
sourceimpl PartialEq<Categories> for Categories
impl PartialEq<Categories> for Categories
sourcefn 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 ==
. Read more
sourceimpl Serialize for Categories
impl Serialize for Categories
sourceimpl TypeInfo for Categories
impl TypeInfo for Categories
impl EncodeLike<Categories> for Categories
impl Eq for Categories
impl StructuralEq for Categories
impl StructuralPartialEq for Categories
Auto Trait Implementations
impl RefUnwindSafe for Categories
impl Send for Categories
impl Sync for Categories
impl Unpin for Categories
impl UnwindSafe for Categories
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more