Skip to content

Commit

Permalink
Update Enum and EnumItem docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler committed Nov 1, 2024
1 parent c1a08e4 commit 8d10dc7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rbx_types/src/basic_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use thiserror::Error;

use crate::Error;

/// Represents any Roblox enum value.
/// Represents any Roblox EnumItem.
///
/// Roblox enums are not strongly typed, so the meaning of a value depends on
/// where they're assigned.
///
/// A list of all enums and their values are available [on the Roblox Developer
/// Hub](https://developer.roblox.com/en-us/api-reference/enum).
/// Hub](https://create.roblox.com/docs/reference/engine/enums).
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(
feature = "serde",
Expand All @@ -29,6 +29,10 @@ impl Enum {
}
}

/// Represents a specific Roblox EnumItem.
///
/// A list of all enums and their values are available [on the Roblox Developer
/// Hub](https://create.roblox.com/docs/reference/engine/enums).
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize,))]
pub struct EnumItem {
Expand Down

0 comments on commit 8d10dc7

Please sign in to comment.