pub enum ServiceGroup {
Market,
Account,
Trade,
Funding,
Paper,
Auth,
}Expand description
Service groups that can be enabled in the MCP server.
Variants§
Implementations§
Source§impl ServiceGroup
impl ServiceGroup
Sourcepub fn all() -> Vec<ServiceGroup>
pub fn all() -> Vec<ServiceGroup>
All known service groups.
Sourcepub fn default_groups() -> Vec<ServiceGroup>
pub fn default_groups() -> Vec<ServiceGroup>
Default service groups (safe operations, no auth required for some).
Sourcepub fn is_dangerous(&self) -> bool
pub fn is_dangerous(&self) -> bool
Whether this group contains dangerous operations (trade, funding).
Trait Implementations§
Source§impl Clone for ServiceGroup
impl Clone for ServiceGroup
Source§fn clone(&self) -> ServiceGroup
fn clone(&self) -> ServiceGroup
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 ServiceGroup
impl Debug for ServiceGroup
Source§impl Display for ServiceGroup
impl Display for ServiceGroup
Source§impl FromStr for ServiceGroup
impl FromStr for ServiceGroup
Source§impl PartialEq for ServiceGroup
impl PartialEq for ServiceGroup
Source§fn eq(&self, other: &ServiceGroup) -> bool
fn eq(&self, other: &ServiceGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ServiceGroup
impl Eq for ServiceGroup
impl StructuralPartialEq for ServiceGroup
Auto Trait Implementations§
impl Freeze for ServiceGroup
impl RefUnwindSafe for ServiceGroup
impl Send for ServiceGroup
impl Sync for ServiceGroup
impl Unpin for ServiceGroup
impl UnsafeUnpin for ServiceGroup
impl UnwindSafe for ServiceGroup
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