Skip to main content

method_of

Function method_of 

Source
pub fn method_of(v: &Value) -> Option<&str>
Expand description

Extract the method tag from a raw request value without deserializing the whole message. Task 3’s dispatcher uses this: match on the method string, then deserialize params per-method — which tolerates omitted / null / {} params for parameterless methods (adjacent tagging rejects params:{} on unit variants).