pub struct SiteSpec {
pub name: String,
pub purpose: String,
pub subjects: Vec<String>,
pub contracts: BTreeMap<String, Contract>,
}Expand description
Immutable contracts approved before binding any builder.
Fields§
§name: StringOne service name segment.
purpose: StringOne sentence describing its work.
subjects: Vec<String>Exact subject roots it will serve.
contracts: BTreeMap<String, Contract>One validated pair for every subject.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SiteSpec
impl<'de> Deserialize<'de> for SiteSpec
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 SiteSpec
impl RefUnwindSafe for SiteSpec
impl Send for SiteSpec
impl Sync for SiteSpec
impl Unpin for SiteSpec
impl UnsafeUnpin for SiteSpec
impl UnwindSafe for SiteSpec
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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