pub struct RpcPattern {
pub verb: RpcCrudVerb,
pub template: String,
pub group_name: String,
}Expand description
A pattern that matches RPC-style operation paths to CRUD verbs and resource names.
Each pattern has a verb, a regex-like prefix, and an optional suffix that together
extract the resource base name from a path like /auth-method-create-aws-iam.
Fields§
§verb: RpcCrudVerb§template: StringThe path prefix to match (e.g., /auth-method-create-). Use {resource} as
placeholder for the variable part.
group_name: StringThe resulting group base name template. Use {0} for the captured variable part.
Implementations§
Source§impl RpcPattern
impl RpcPattern
Sourcepub fn new(verb: RpcCrudVerb, template: &str, group_name: &str) -> Self
pub fn new(verb: RpcCrudVerb, template: &str, group_name: &str) -> Self
Create a new RPC pattern.
Trait Implementations§
Source§impl Clone for RpcPattern
impl Clone for RpcPattern
Auto Trait Implementations§
impl Freeze for RpcPattern
impl RefUnwindSafe for RpcPattern
impl Send for RpcPattern
impl Sync for RpcPattern
impl Unpin for RpcPattern
impl UnsafeUnpin for RpcPattern
impl UnwindSafe for RpcPattern
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