pub struct MethodPath(/* private fields */);Expand description
A dotted method path like auth.login or cone.send_message.
Wire form: bare string. Validation: must match
^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$. At least two segments are required
(the activation namespace plus the method name).
Wildcards are NOT allowed — wildcards belong to Scope (AUTHZ-CORE-4).
Per AUTHZ-S01-output §1.
Implementations§
Source§impl MethodPath
impl MethodPath
Sourcepub fn try_new(s: impl Into<String>) -> Result<MethodPath, MethodPathError>
pub fn try_new(s: impl Into<String>) -> Result<MethodPath, MethodPathError>
Construct a MethodPath, validating the dotted-path grammar.
Sourcepub fn activation(&self) -> &str
pub fn activation(&self) -> &str
The first segment — the activation namespace (e.g., "auth" in
"auth.login").
Trait Implementations§
Source§impl Clone for MethodPath
impl Clone for MethodPath
Source§fn clone(&self) -> MethodPath
fn clone(&self) -> MethodPath
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 MethodPath
impl Debug for MethodPath
Source§impl<'de> Deserialize<'de> for MethodPath
impl<'de> Deserialize<'de> for MethodPath
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MethodPath, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MethodPath, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MethodPath
impl Display for MethodPath
Source§impl Hash for MethodPath
impl Hash for MethodPath
Source§impl JsonSchema for MethodPath
impl JsonSchema for MethodPath
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 MethodPath
impl PartialEq for MethodPath
Source§fn eq(&self, other: &MethodPath) -> bool
fn eq(&self, other: &MethodPath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MethodPath
impl Serialize for MethodPath
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MethodPath
impl StructuralPartialEq for MethodPath
Auto Trait Implementations§
impl Freeze for MethodPath
impl RefUnwindSafe for MethodPath
impl Send for MethodPath
impl Sync for MethodPath
impl Unpin for MethodPath
impl UnsafeUnpin for MethodPath
impl UnwindSafe for MethodPath
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<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
Compare self to
key and return true if they are equal.