pub struct ProtocolSpecV1 {Show 19 fields
pub schema: String,
pub name: String,
pub version: String,
pub description: Option<String>,
pub handler_abi: Option<String>,
pub ctx_version: Option<String>,
pub programs: BTreeMap<String, ProtocolProgramV1>,
pub stacks: BTreeMap<String, ProtocolStackDependencyV1>,
pub params: ObjectSchemaV1,
pub roles: BTreeMap<String, RoleV1>,
pub resources: BTreeMap<String, ResourceDeclV1>,
pub instance_visibility: InstanceVisibility,
pub reads: BTreeMap<String, ReadV1>,
pub machines: MachinesV1,
pub steps: BTreeMap<String, StepV1>,
pub reactions: Vec<ReactionV1>,
pub events: BTreeMap<String, EventV1>,
pub metadata: MetadataV1,
pub stack: StackSurfaceV1,
}Fields§
§schema: String§name: String§version: String§description: Option<String>§handler_abi: Option<String>§ctx_version: Option<String>§programs: BTreeMap<String, ProtocolProgramV1>§stacks: BTreeMap<String, ProtocolStackDependencyV1>§params: ObjectSchemaV1§roles: BTreeMap<String, RoleV1>§resources: BTreeMap<String, ResourceDeclV1>§instance_visibility: InstanceVisibility§reads: BTreeMap<String, ReadV1>§machines: MachinesV1§steps: BTreeMap<String, StepV1>§reactions: Vec<ReactionV1>§events: BTreeMap<String, EventV1>§metadata: MetadataV1§stack: StackSurfaceV1Implementations§
Source§impl ProtocolSpecV1
impl ProtocolSpecV1
pub fn hash(&self) -> Result<HashId<ProtocolSpec>, HashError>
pub fn has_handlers(&self) -> bool
pub fn create_step(&self) -> Option<(&String, &StepV1)>
Sourcepub fn effective_access(
&self,
step: &str,
narrowed_to_secret: bool,
) -> Option<StepAccess>
pub fn effective_access( &self, step: &str, narrowed_to_secret: bool, ) -> Option<StepAccess>
The step’s effective access for an integrator that narrowed it, or
None for steps no client can call.
pub fn machine(&self, kind: MachineKind) -> Option<&MachineV1>
Trait Implementations§
Source§impl Clone for ProtocolSpecV1
impl Clone for ProtocolSpecV1
Source§impl Debug for ProtocolSpecV1
impl Debug for ProtocolSpecV1
Source§impl<'de> Deserialize<'de> for ProtocolSpecV1
impl<'de> Deserialize<'de> for ProtocolSpecV1
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 ProtocolSpecV1
impl PartialEq for ProtocolSpecV1
Source§impl Serialize for ProtocolSpecV1
impl Serialize for ProtocolSpecV1
impl StructuralPartialEq for ProtocolSpecV1
Auto Trait Implementations§
impl Freeze for ProtocolSpecV1
impl RefUnwindSafe for ProtocolSpecV1
impl Send for ProtocolSpecV1
impl Sync for ProtocolSpecV1
impl Unpin for ProtocolSpecV1
impl UnsafeUnpin for ProtocolSpecV1
impl UnwindSafe for ProtocolSpecV1
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