pub struct NodeAuthResponse {
pub public_operations_version: Option<u32>,
pub binding_metadata: Option<NodeBindingMetadata>,
pub core_protocol_version: Option<u32>,
pub ok: bool,
pub session_id: Option<String>,
pub hub_id: Option<String>,
pub tenant_id: Option<String>,
pub space_id: Option<String>,
pub error: Option<String>,
pub error_code: Option<String>,
pub recovery_action: Option<String>,
pub node_id: Option<String>,
}Fields§
§public_operations_version: Option<u32>§binding_metadata: Option<NodeBindingMetadata>Exact release admitted by this authentication. Required when ok is true.
Transports carry this snapshot into connection registration unchanged.
core_protocol_version: Option<u32>Echoed only after the actual Core accepts the Node contract revision.
ok: bool§session_id: Option<String>§hub_id: Option<String>§tenant_id: Option<String>§space_id: Option<String>§error: Option<String>§error_code: Option<String>§recovery_action: Option<String>§node_id: Option<String>Implementations§
Source§impl NodeAuthResponse
impl NodeAuthResponse
Sourcepub fn admitted_metadata(
&self,
request: &NodeAuthRequest,
) -> Result<&NodeBindingMetadata, String>
pub fn admitted_metadata( &self, request: &NodeAuthRequest, ) -> Result<&NodeBindingMetadata, String>
Check the Core’s acknowledgement before opening business traffic or registering a connection. Publisher trust is verified by Core, not by this transport helper.
Trait Implementations§
Source§impl Clone for NodeAuthResponse
impl Clone for NodeAuthResponse
Source§impl Debug for NodeAuthResponse
impl Debug for NodeAuthResponse
Source§impl<'de> Deserialize<'de> for NodeAuthResponse
impl<'de> Deserialize<'de> for NodeAuthResponse
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 Forget for NodeAuthResponse
impl Freeze for NodeAuthResponse
impl Move for NodeAuthResponse
impl RefUnwindSafe for NodeAuthResponse
impl Send for NodeAuthResponsewhere
RawVecInner: Send,
impl Sync for NodeAuthResponsewhere
RawVecInner: Sync,
impl Unpin for NodeAuthResponse
impl UnsafeUnpin for NodeAuthResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for NodeAuthResponsewhere
RawVecInner: UnwindSafe,
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