pub struct RegistrationRequest { /* private fields */ }Implementations§
Source§impl RegistrationRequest
impl RegistrationRequest
Sourcepub const MAX_REQUEST_SIZE: usize = 1024
pub const MAX_REQUEST_SIZE: usize = 1024
No request should be bigger than this many bytes. If so, assume something malicious is going on
Sourcepub fn new(
agent_descriptor: AgentDescriptor,
auth_token: AuthToken,
requested_capabilities: Vec<AgentCapabilities>,
connection_protocol: TransportProtocolImplementation,
) -> Self
pub fn new( agent_descriptor: AgentDescriptor, auth_token: AuthToken, requested_capabilities: Vec<AgentCapabilities>, connection_protocol: TransportProtocolImplementation, ) -> Self
Create a new registration request.
§Arguments
agent_descriptor- Information identifying the agentauth_token- Authentication token for secure accessrequested_capabilities- List of capabilities the agent is requestingconnection_protocol- The protocol the agent wants to use for communication
Sourcepub fn api_version(&self) -> &FeagiApiVersion
pub fn api_version(&self) -> &FeagiApiVersion
Get the reported API version
Sourcepub fn agent_descriptor(&self) -> &AgentDescriptor
pub fn agent_descriptor(&self) -> &AgentDescriptor
Get the agent descriptor.
Sourcepub fn auth_token(&self) -> &AuthToken
pub fn auth_token(&self) -> &AuthToken
Get the authentication token.
Sourcepub fn requested_capabilities(&self) -> &[AgentCapabilities]
pub fn requested_capabilities(&self) -> &[AgentCapabilities]
Get the requested capabilities.
Sourcepub fn connection_protocol(&self) -> &TransportProtocolImplementation
pub fn connection_protocol(&self) -> &TransportProtocolImplementation
Get the connection protocol.
Trait Implementations§
Source§impl Clone for RegistrationRequest
impl Clone for RegistrationRequest
Source§fn clone(&self) -> RegistrationRequest
fn clone(&self) -> RegistrationRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegistrationRequest
impl Debug for RegistrationRequest
Source§impl<'de> Deserialize<'de> for RegistrationRequest
impl<'de> Deserialize<'de> for RegistrationRequest
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 RegistrationRequest
impl PartialEq for RegistrationRequest
Source§impl Serialize for RegistrationRequest
impl Serialize for RegistrationRequest
impl StructuralPartialEq for RegistrationRequest
Auto Trait Implementations§
impl Freeze for RegistrationRequest
impl RefUnwindSafe for RegistrationRequest
impl Send for RegistrationRequest
impl Sync for RegistrationRequest
impl Unpin for RegistrationRequest
impl UnsafeUnpin for RegistrationRequest
impl UnwindSafe for RegistrationRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more