pub struct RequestEntity {
pub service_name: String,
pub method_name: String,
pub args_json: Json,
}Expand description
Correlation token for RPC is the request entity id propagated in metadata.
The receiver generates a fresh response entity id and emits request -> response.
Fields§
§service_name: StringService name portion of the RPC endpoint.
Example: for vfs.lookupItem, this is vfs.
method_name: StringMethod name portion of the RPC endpoint.
Example: for vfs.lookupItem, this is lookupItem.
args_json: JsonJSON-encoded request arguments.
This is always valid JSON and should be [] when the method has no args.
Trait Implementations§
Source§impl EntityBodySlot for RequestEntity
impl EntityBodySlot for RequestEntity
const KIND_NAME: &'static str = "Request"
type Value = RequestEntity
fn project(body: &EntityBody) -> Option<&Self::Value>
fn project_mut(body: &mut EntityBody) -> Option<&mut Self::Value>
Source§impl<'ʄ> Facet<'ʄ> for RequestEntity
impl<'ʄ> Facet<'ʄ> for RequestEntity
Source§impl From<RequestEntity> for EntityBody
impl From<RequestEntity> for EntityBody
Source§fn from(value: RequestEntity) -> Self
fn from(value: RequestEntity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RequestEntity
impl RefUnwindSafe for RequestEntity
impl Send for RequestEntity
impl Sync for RequestEntity
impl Unpin for RequestEntity
impl UnsafeUnpin for RequestEntity
impl UnwindSafe for RequestEntity
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