#[non_exhaustive]pub enum AuthPosture {
Required,
Optional,
Mixed,
None,
}Expand description
Declared auth-enforcement posture of the activation a method belongs to.
Mirrors plexus-macros’ RED-6 auth = "required" | "optional" | "mixed" | "none" activation attribute, which until R-1/R-2 (the ROLES+AP merged
wave) was parsed and compile-enforced but never emitted — invisible to
every downstream IR consumer (synapse, hub-codegen, generated clients).
Semantics (compile-time enforcement lives in plexus-macros; this is the escaped declaration):
Required— every method is auth-gated (#[from_auth]) or explicitlypublic.Optional— no enforcement; auth may be asymmetric across methods.Mixed— likeOptional, but the asymmetry is explicitly acknowledged.None— affirmatively public activation; no method takes auth.
§Wire back-compat
Added in R-2 (joint AP-1). Pre-existing readers tolerate the field’s
absence (auth_posture is omitted on the wire when the activation never
declared a posture) and pre-existing IRs that omit the field decode
cleanly via #[serde(default)] on the field site. #[non_exhaustive]
reserves space for future postures without breaking downstream match arms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Required
Every method is auth-gated or explicitly public.
Optional
No enforcement; auth may be asymmetric across methods.
Mixed
Asymmetric auth, explicitly acknowledged.
None
Affirmatively public activation; no method takes auth.
Trait Implementations§
Source§impl Clone for AuthPosture
impl Clone for AuthPosture
impl Copy for AuthPosture
Source§impl Debug for AuthPosture
impl Debug for AuthPosture
Source§impl<'de> Deserialize<'de> for AuthPosture
impl<'de> Deserialize<'de> for AuthPosture
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>,
impl Eq for AuthPosture
Source§impl JsonSchema for AuthPosture
impl JsonSchema for AuthPosture
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for AuthPosture
impl PartialEq for AuthPosture
Source§impl Serialize for AuthPosture
impl Serialize for AuthPosture
impl StructuralPartialEq for AuthPosture
Auto Trait Implementations§
impl Freeze for AuthPosture
impl RefUnwindSafe for AuthPosture
impl Send for AuthPosture
impl Sync for AuthPosture
impl Unpin for AuthPosture
impl UnsafeUnpin for AuthPosture
impl UnwindSafe for AuthPosture
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.