pub enum AttachmentSite {
Header {
name: HeaderName,
},
Cookie {
name: CookieName,
},
FirstFrame {
setup_method: MethodPath,
param: ParamName,
},
InRpcParam {
param: ParamName,
},
}Expand description
Where the credential is attached on the wire when sent on subsequent calls. The framework’s client-side replay machinery reads this to build the outbound request.
Variants§
Header
HTTP header. e.g. Authorization: <scheme><value>.
Fields
§
name: HeaderNameThe header name (e.g. authorization).
Cookie
HTTP cookie. e.g. Cookie: plexus_session=<value>.
Fields
§
name: CookieNameThe cookie name (e.g. plexus_session).
FirstFrame
First-frame WS auth: included as a parameter to a setup method.
Fields
§
setup_method: MethodPathThe method that the client calls first on the WS connection.
InRpcParam
In-RPC parameter: each call receives this credential as a named parameter on the inbound activation. Used for backends without HTTP cookie/header support (e.g., pure stdio).
Trait Implementations§
Source§impl Clone for AttachmentSite
impl Clone for AttachmentSite
Source§fn clone(&self) -> AttachmentSite
fn clone(&self) -> AttachmentSite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttachmentSite
impl Debug for AttachmentSite
Source§impl<'de> Deserialize<'de> for AttachmentSite
impl<'de> Deserialize<'de> for AttachmentSite
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 Hash for AttachmentSite
impl Hash for AttachmentSite
Source§impl JsonSchema for AttachmentSite
impl JsonSchema for AttachmentSite
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AttachmentSite
impl PartialEq for AttachmentSite
Source§fn eq(&self, other: &AttachmentSite) -> bool
fn eq(&self, other: &AttachmentSite) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttachmentSite
impl Serialize for AttachmentSite
impl Eq for AttachmentSite
impl StructuralPartialEq for AttachmentSite
Auto Trait Implementations§
impl Freeze for AttachmentSite
impl RefUnwindSafe for AttachmentSite
impl Send for AttachmentSite
impl Sync for AttachmentSite
impl Unpin for AttachmentSite
impl UnsafeUnpin for AttachmentSite
impl UnwindSafe for AttachmentSite
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