pub struct SpaceConfig {
pub schema_version: u16,
pub shell_id: ShellId,
pub slug: BoundedString<32>,
pub kind: SpaceKind,
pub visibility: Visibility,
pub creator: ActorId,
pub parent_space: Option<SpaceId>,
pub created_tick: Tick,
}Expand description
Space configuration Component — exactly one per Space (E-space-1).
Fields§
§schema_version: u16Wire-level schema version tag.
shell_id: ShellIdShell identity — immutable.
slug: BoundedString<32>URL-safe slug — unique within shell.
kind: SpaceKindStructural kind.
visibility: VisibilityVisibility policy.
creator: ActorIdCreating actor (must be in same shell — E-space-5).
parent_space: Option<SpaceId>Parent Space in the DAG. Immutable after creation (E-space-7 / P5).
created_tick: TickCreation tick.
Trait Implementations§
Source§impl ArkheComponent for SpaceConfig
impl ArkheComponent for SpaceConfig
Source§const TYPE_CODE: u32 = 197121u32
const TYPE_CODE: u32 = 197121u32
Globally stable dispatch code within the runtime
TypeCode registry.Source§const SCHEMA_VERSION: u16 = 1u16
const SCHEMA_VERSION: u16 = 1u16
Monotone schema version. Bump on field addition (
#[serde(default)]
paired); field removal / reorder forbidden.Source§fn approx_size(&self) -> usize
fn approx_size(&self) -> usize
Approximate payload size for quota tracking. Default returns
size_of::<Self>(); override for bytes::Bytes-carrying Components.Source§impl Clone for SpaceConfig
impl Clone for SpaceConfig
Source§fn clone(&self) -> SpaceConfig
fn clone(&self) -> SpaceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpaceConfig
impl Debug for SpaceConfig
Source§impl<'de> Deserialize<'de> for SpaceConfig
impl<'de> Deserialize<'de> for SpaceConfig
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 PartialEq for SpaceConfig
impl PartialEq for SpaceConfig
Source§fn eq(&self, other: &SpaceConfig) -> bool
fn eq(&self, other: &SpaceConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpaceConfig
impl Serialize for SpaceConfig
impl Eq for SpaceConfig
impl StructuralPartialEq for SpaceConfig
Auto Trait Implementations§
impl Freeze for SpaceConfig
impl RefUnwindSafe for SpaceConfig
impl Send for SpaceConfig
impl Sync for SpaceConfig
impl Unpin for SpaceConfig
impl UnsafeUnpin for SpaceConfig
impl UnwindSafe for SpaceConfig
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