skir_client/method

Types

Metadata for a Skir RPC method.

pub type Method(request, response) {
  Method(
    name: String,
    number: Int,
    doc: String,
    request_serializer: serializer.Serializer(request),
    response_serializer: serializer.Serializer(response),
  )
}

Constructors

  • Method(
      name: String,
      number: Int,
      doc: String,
      request_serializer: serializer.Serializer(request),
      response_serializer: serializer.Serializer(response),
    )

    Arguments

    name

    The method name as declared in the .skir file.

    number

    The stable numeric identifier of the method.

    doc

    The documentation comment from the .skir file.

    request_serializer

    Serializer for request values.

    response_serializer

    Serializer for response values.

Search Document