pub struct CanvasWorldConfig {
pub id: String,
pub title: String,
pub temporal_range: Option<(u64, u64)>,
pub layer_stack: Vec<CanvasLayer>,
pub assets: Vec<CanvasAssetRef>,
pub permitted_nquins: Vec<u64>,
pub norms: Vec<CanvasNorm>,
pub origin_lat: f64,
pub origin_lon: f64,
pub origin_alt_m: f64,
}Expand description
A “world” configuration: a bounded projection over the canvas.
Fields§
§id: StringUnique identifier (e.g. q42:world:council-sydney).
title: StringHuman-readable title shown in the Chora panel.
temporal_range: Option<(u64, u64)>Optional temporal range: (start_epoch, end_epoch). None = full timeline.
layer_stack: Vec<CanvasLayer>Ordered stack of dataset layers to composite.
assets: Vec<CanvasAssetRef>Offline or seeded assets rendered in this world.
permitted_nquins: Vec<u64>Whitelist of permitted nquin subject hashes. Empty = layer-stack bounds only.
norms: Vec<CanvasNorm>Deontic norms / governance rules applied to this world.
origin_lat: f64Reference-frame origin for local ENU coordinates (degrees).
origin_lon: f64§origin_alt_m: f64Implementations§
Source§impl CanvasWorldConfig
impl CanvasWorldConfig
Sourcepub fn validate(&self) -> Result<(), WorldConfigError>
pub fn validate(&self) -> Result<(), WorldConfigError>
Validate the config contract (P0 freeze).
Sourcepub fn seed_demo() -> Self
pub fn seed_demo() -> Self
P0 demo world: one offline tile, Sydney origin, CC0 licence placeholder.
Sourcepub fn layer_endpoints(&self) -> Vec<&str>
pub fn layer_endpoints(&self) -> Vec<&str>
Resolve layer endpoints in stack order (deduplicated).
Trait Implementations§
Source§impl Clone for CanvasWorldConfig
impl Clone for CanvasWorldConfig
Source§fn clone(&self) -> CanvasWorldConfig
fn clone(&self) -> CanvasWorldConfig
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 CanvasWorldConfig
impl Debug for CanvasWorldConfig
Source§impl Default for CanvasWorldConfig
impl Default for CanvasWorldConfig
Source§impl<'de> Deserialize<'de> for CanvasWorldConfig
impl<'de> Deserialize<'de> for CanvasWorldConfig
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
Auto Trait Implementations§
impl Freeze for CanvasWorldConfig
impl RefUnwindSafe for CanvasWorldConfig
impl Send for CanvasWorldConfig
impl Sync for CanvasWorldConfig
impl Unpin for CanvasWorldConfig
impl UnsafeUnpin for CanvasWorldConfig
impl UnwindSafe for CanvasWorldConfig
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.