pub struct Object {
pub name: String,
pub description: Option<String>,
pub interfaces: Vec<String>,
pub ref: Option<String>,
pub validator: Option<Vec<u8>>,
}Expand description
The protocol projection currently published at one Worldspace path.
name is a path segment, interfaces is an ordered set of opaque interface
references, r#ref is optional object identity, and validator is an
independent optional observation precondition. In particular, neither the
path nor r#ref is a mandatory object identifier.
Fields§
§name: StringPath-segment name. The root object’s name is empty.
description: Option<String>Short public description of the object.
interfaces: Vec<String>Opaque interface references in host publication order.
ref: Option<String>Optional opaque identity within one client-facing Worldspace.
validator: Option<Vec<u8>>Optional opaque validator for the object’s observed state.
Implementations§
Source§impl Object
impl Object
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validates the object-independent name and ordered-interface-set rules.
Sourcepub fn validate_at_path(&self, path: &str) -> Result<(), ValidationError>
pub fn validate_at_path(&self, path: &str) -> Result<(), ValidationError>
Validates this object as the response observed at path.
Sourcepub fn validate_consistency_with(
&self,
other: &Self,
) -> Result<(), ValidationError>
pub fn validate_consistency_with( &self, other: &Self, ) -> Result<(), ValidationError>
Validates equal representations for a shared ref and present validator.