pub struct RegionSchema {
pub format: ContentFormat,
pub custom_script: Option<String>,
}Expand description
Validation schema for a region’s content.
Enforces that content matches expected format (e.g., mermaid diagrams only, JSON only, code only). Schemas can include multiple validators that are checked when content is added to a region.
Fields§
§format: ContentFormatExpected content format
custom_script: Option<String>Optional custom validation script (Rhai)
Implementations§
Source§impl RegionSchema
impl RegionSchema
Trait Implementations§
Source§impl Clone for RegionSchema
impl Clone for RegionSchema
Source§impl Debug for RegionSchema
impl Debug for RegionSchema
Source§impl<'de> Deserialize<'de> for RegionSchema
impl<'de> Deserialize<'de> for RegionSchema
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 RegionSchema
impl RefUnwindSafe for RegionSchema
impl Send for RegionSchema
impl Sync for RegionSchema
impl Unpin for RegionSchema
impl UnsafeUnpin for RegionSchema
impl UnwindSafe for RegionSchema
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