pub enum RpcId {
String(String),
Number(u64),
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RpcId
impl<'de> Deserialize<'de> for RpcId
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RpcId
Source§impl JsonSchema for RpcId
impl JsonSchema for RpcId
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl Ord for RpcId
impl Ord for RpcId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RpcId
impl PartialOrd for RpcId
impl StructuralPartialEq for RpcId
Auto Trait Implementations§
impl Freeze for RpcId
impl RefUnwindSafe for RpcId
impl Send for RpcId
impl Sync for RpcId
impl Unpin for RpcId
impl UnsafeUnpin for RpcId
impl UnwindSafe for RpcId
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