pub struct WebCodegenRequest {Show 25 fields
pub config_path: PathBuf,
pub output_dir: PathBuf,
pub project_root: PathBuf,
pub overwrite_user_code: bool,
pub package_name: String,
pub manufacturer: String,
pub actr_name: String,
pub version: String,
pub description: String,
pub authors: Vec<String>,
pub license: String,
pub tags: Vec<String>,
pub signaling_url: String,
pub realm_id: u32,
pub visible_in_discovery: bool,
pub ais_endpoint: String,
pub force_relay: bool,
pub dependencies: Vec<DependencyInfo>,
pub stun_urls: Vec<String>,
pub turn_urls: Vec<String>,
pub observability: ObservabilityInfo,
pub raw_toml: String,
pub local_services: Vec<ServiceInfo>,
pub remote_services: Vec<ServiceInfo>,
pub files: Vec<FileInfo>,
}Expand description
Complete request from CLI to plugin
Fields§
§config_path: PathBufPath to actr.toml (used for reading raw TOML extras)
output_dir: PathBufOutput directory for generated TS files (e.g. src/generated)
project_root: PathBufProject root directory (parent of src/)
overwrite_user_code: boolWhether already-existing user code may be overwritten
package_name: String§manufacturer: String§actr_name: String§version: String§description: String§license: String§signaling_url: String§realm_id: u32§visible_in_discovery: bool§ais_endpoint: StringAIS (Actor Identity Service) HTTP endpoint
force_relay: boolWhether to force relay (TURN-only) for ICE transport
dependencies: Vec<DependencyInfo>§stun_urls: Vec<String>§turn_urls: Vec<String>§observability: ObservabilityInfo§raw_toml: String§local_services: Vec<ServiceInfo>§remote_services: Vec<ServiceInfo>§files: Vec<FileInfo>Implementations§
Source§impl WebCodegenRequest
impl WebCodegenRequest
Sourcepub fn is_service_provider_only(&self) -> bool
pub fn is_service_provider_only(&self) -> bool
Whether this project exports services only and does not call out to any remote actor. Used by the WASM scaffold generator to decide whether to emit a service handler (provider) or a forwarding stub.
Note: this is purely a codegen topology signal derived from the proto model — it does NOT imply a passive connection role. Any actor can be called by any other actor; connection initiator / acceptor roles are negotiated per-peer at runtime.
Sourcepub fn get_acl_allow_types(&self) -> Vec<String>
pub fn get_acl_allow_types(&self) -> Vec<String>
Get ACL allow types from raw TOML
Sourcepub fn target_actr_type(&self) -> String
pub fn target_actr_type(&self) -> String
Get the target actr type for peer discovery (manufacturer:name:version).
For an actor that imports a remote service, the target is the declared dependency. For an actor that only exports services, the target is the first ACL-allowed type — useful for RPCs initiated from that actor side when it needs to reach a caller by type.
Sourcepub fn client_actr_type(&self) -> String
pub fn client_actr_type(&self) -> String
Get client actr type (this actor’s type) — manufacturer:name:version
Sourcepub fn wasm_module_name(&self) -> String
pub fn wasm_module_name(&self) -> String
Get crate/WASM module name (snake_case)
Sourcepub fn exports_list(&self) -> Vec<String>
pub fn exports_list(&self) -> Vec<String>
Get exports from raw TOML
Sourcepub fn platform_web(&self) -> Option<Value>
pub fn platform_web(&self) -> Option<Value>
Get platform.web from raw TOML