pub struct ServiceCapabilities {
pub allowed_methods: Vec<ServiceMethodKind>,
}Expand description
Capabilities describe which methods a service wants to expose to the outside world (HTTP, WebSockets, P2P, etc.).
Adapters (like dog-axum) can use this to mount only allowed routes.
Fields§
§allowed_methods: Vec<ServiceMethodKind>Implementations§
Source§impl ServiceCapabilities
impl ServiceCapabilities
Sourcepub fn standard_crud() -> Self
pub fn standard_crud() -> Self
Full CRUD, equivalent to Feathers default: [‘find’, ‘get’, ‘create’, ‘patch’, ‘update’, ‘remove’]
Sourcepub fn from_methods(methods: Vec<ServiceMethodKind>) -> Self
pub fn from_methods(methods: Vec<ServiceMethodKind>) -> Self
Helper for building from a list.
Trait Implementations§
Source§impl Clone for ServiceCapabilities
impl Clone for ServiceCapabilities
Source§fn clone(&self) -> ServiceCapabilities
fn clone(&self) -> ServiceCapabilities
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceCapabilities
impl RefUnwindSafe for ServiceCapabilities
impl Send for ServiceCapabilities
impl Sync for ServiceCapabilities
impl Unpin for ServiceCapabilities
impl UnwindSafe for ServiceCapabilities
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