pub struct ServiceDesc {
pub id: String,
pub req_type: String,
pub res_type: String,
pub doc: String,
pub timeout_hint: Option<Duration>,
}Expand description
一条服务声明(住回插件本身;宿主仅在 add 时抽 id 织入路由索引)。
Fields§
§id: String服务标识,如 order.place(允许多提供方共享同一 id)。
req_type: String请求类型名(type_name::
res_type: String返回类型名(type_name::
doc: String人读说明。
timeout_hint: Option<Duration>建议超时(可选)。
Implementations§
Trait Implementations§
Source§impl Clone for ServiceDesc
impl Clone for ServiceDesc
Source§impl Debug for ServiceDesc
impl Debug for ServiceDesc
Source§impl Default for ServiceDesc
impl Default for ServiceDesc
impl Eq for ServiceDesc
Source§impl PartialEq for ServiceDesc
impl PartialEq for ServiceDesc
impl StructuralPartialEq for ServiceDesc
Auto Trait Implementations§
impl Freeze for ServiceDesc
impl RefUnwindSafe for ServiceDesc
impl Send for ServiceDesc
impl Sync for ServiceDesc
impl Unpin for ServiceDesc
impl UnsafeUnpin for ServiceDesc
impl UnwindSafe for ServiceDesc
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