pub struct RegisterRequest {
pub actr_type: ActrType,
pub realm: Realm,
pub service_spec: Option<ServiceSpec>,
pub acl: Option<Acl>,
pub service: Option<String>,
pub ws_address: Option<String>,
pub manifest_raw: Option<Bytes>,
pub mfr_signature: Option<Bytes>,
pub psk_token: Option<Bytes>,
pub target: Option<String>,
pub auth_mode: Option<i32>,
}Expand description
Allocate a new ActrId and register node metadata and API info.
Fields§
§actr_type: ActrType§realm: Realm§service_spec: Option<ServiceSpec>API / contract metadata
acl: Option<Acl>§service: Option<String>Compact service reference: “ServiceName:fingerprint”. Present when strict proto fingerprint matching is required.
ws_address: Option<String>WebSocket direct-connect address (e.g., “ws://192.168.1.10:9100”). Set when the registering node has a WebSocket server listening for inbound direct connections. The signaling server stores this and returns it to clients via RouteCandidatesResponse so they can connect without a relay.
manifest_raw: Option<Bytes>Initial registration with an MFR manifest, used when no PSK is available.
Raw manifest bytes (original actr.toml from the .actr package) for MFR signature verification.
mfr_signature: Option<Bytes>Ed25519 signature over the manifest contents produced by the MFR, 64 bytes.
psk_token: Option<Bytes>PSK used during renewal when an existing PSK is available, replacing manifest authentication.
target: Option<String>Target platform (e.g. “wasm32-wasip1”, “x86_64-unknown-linux-gnu”). Extracted from manifest binary.target for AIS lookup path verification.
auth_mode: Option<i32>Explicit authentication source. Omitted/UNSPECIFIED is treated as PACKAGE for backward compatibility with older package clients.
Implementations§
Source§impl RegisterRequest
impl RegisterRequest
Sourcepub fn service(&self) -> &str
pub fn service(&self) -> &str
Returns the value of service, or the default value if service is unset.
Sourcepub fn ws_address(&self) -> &str
pub fn ws_address(&self) -> &str
Returns the value of ws_address, or the default value if ws_address is unset.
Sourcepub fn manifest_raw(&self) -> &[u8] ⓘ
pub fn manifest_raw(&self) -> &[u8] ⓘ
Returns the value of manifest_raw, or the default value if manifest_raw is unset.
Sourcepub fn mfr_signature(&self) -> &[u8] ⓘ
pub fn mfr_signature(&self) -> &[u8] ⓘ
Returns the value of mfr_signature, or the default value if mfr_signature is unset.
Sourcepub fn psk_token(&self) -> &[u8] ⓘ
pub fn psk_token(&self) -> &[u8] ⓘ
Returns the value of psk_token, or the default value if psk_token is unset.
Sourcepub fn target(&self) -> &str
pub fn target(&self) -> &str
Returns the value of target, or the default value if target is unset.
Sourcepub fn auth_mode(&self) -> RegisterAuthMode
pub fn auth_mode(&self) -> RegisterAuthMode
Returns the enum value of auth_mode, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_auth_mode(&mut self, value: RegisterAuthMode)
pub fn set_auth_mode(&mut self, value: RegisterAuthMode)
Sets auth_mode to the provided enum value.
Trait Implementations§
Source§impl Clone for RegisterRequest
impl Clone for RegisterRequest
Source§fn clone(&self) -> RegisterRequest
fn clone(&self) -> RegisterRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegisterRequest
impl Debug for RegisterRequest
Source§impl Default for RegisterRequest
impl Default for RegisterRequest
Source§impl Message for RegisterRequest
impl Message for RegisterRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for RegisterRequest
impl PartialEq for RegisterRequest
Source§fn eq(&self, other: &RegisterRequest) -> bool
fn eq(&self, other: &RegisterRequest) -> bool
self and other values to be equal, and is used by ==.