pub struct PartitionedMethods<'a> {
pub leaf: Vec<&'a MethodInfo>,
pub static_mounts: Vec<&'a MethodInfo>,
pub slug_mounts: Vec<&'a MethodInfo>,
}Expand description
Categorized methods for code generation.
Methods returning &T (non-async) are mount points; everything else is a leaf.
Mount points are further split by whether they take parameters (slug) or not (static).
Fields§
§leaf: Vec<&'a MethodInfo>Regular leaf methods (no reference return).
static_mounts: Vec<&'a MethodInfo>Static mounts: fn foo(&self) -> &T (no params).
slug_mounts: Vec<&'a MethodInfo>Slug mounts: fn foo(&self, id: Id) -> &T (has params).
Auto Trait Implementations§
impl<'a> Freeze for PartitionedMethods<'a>
impl<'a> RefUnwindSafe for PartitionedMethods<'a>
impl<'a> !Send for PartitionedMethods<'a>
impl<'a> !Sync for PartitionedMethods<'a>
impl<'a> Unpin for PartitionedMethods<'a>
impl<'a> UnsafeUnpin for PartitionedMethods<'a>
impl<'a> UnwindSafe for PartitionedMethods<'a>
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