std/protowkt
On this page
Index
- type
Timestamp - type
Duration - type
Empty - type
FieldMask - type
Any - type
DoubleValue - type
FloatValue - type
Int64Value - type
UInt64Value - type
Int32Value - type
UInt32Value - type
BoolValue - type
StringValue - type
BytesValue - type
Value - type
Struct - type
ListValue - fn
encode_timestamp - fn
decode_timestamp - fn
encode_duration - fn
decode_duration - fn
encode_empty - fn
decode_empty - fn
encode_field_mask - fn
decode_field_mask - fn
encode_any - fn
decode_any - fn
encode_double_value - fn
decode_double_value - fn
encode_float_value - fn
decode_float_value - fn
encode_int64_value - fn
decode_int64_value - fn
encode_uint64_value - fn
decode_uint64_value - fn
encode_int32_value - fn
decode_int32_value - fn
encode_uint32_value - fn
decode_uint32_value - fn
encode_bool_value - fn
decode_bool_value - fn
encode_string_value - fn
decode_string_value - fn
encode_bytes_value - fn
decode_bytes_value - fn
encode_value - fn
decode_value - fn
encode_struct - fn
decode_struct - fn
encode_list_value - fn
decode_list_value
Types
Timestamp
struct Timestamp {
seconds: Int = 0
nanos: Int = 0
} derive EqDuration
struct Duration {
seconds: Int = 0
nanos: Int = 0
} derive EqEmpty
struct Empty {
unknown: Bytes = b""
} derive EqFieldMask
struct FieldMask {
paths: List[Str] = []
} derive EqAny
struct Any {
type_url: Str = ""
value: Bytes = b""
} derive Eqgoogle.protobuf.Any: type_url names the packed message (type.googleapis.com/pkg.Msg), value is
its wire bytes.
DoubleValue
struct DoubleValue { value: Float = 0.0 }FloatValue
struct FloatValue { value: Float32 = 0.0 }Int64Value
struct Int64Value { value: Int = 0 } derive EqUInt64Value
struct UInt64Value { value: UInt64 = 0 } derive EqInt32Value
struct Int32Value { value: Int = 0 } derive EqUInt32Value
struct UInt32Value { value: Int = 0 } derive EqBoolValue
struct BoolValue { value: Bool = false } derive EqStringValue
struct StringValue { value: Str = "" } derive EqBytesValue
struct BytesValue { value: Bytes = b"" } derive EqValue
enum Value {
Unset
Null
Number(v: Float)
Text(v: Str)
Flag(v: Bool)
Object(v: Struct)
Array(v: ListValue)
}google.protobuf.Value: the kind that is set, Unset when none is.
Struct
struct Struct {
fields: Map[Str, Value] = {}
}ListValue
struct ListValue {
values: List[Value] = []
}Functions
encode_timestamp
fn encode_timestamp(m: Timestamp) -> Bytesdecode_timestamp
fn decode_timestamp(b: Bytes) -> Timestamp ! protobuf.ProtoErrencode_duration
fn encode_duration(m: Duration) -> Bytesdecode_duration
fn decode_duration(b: Bytes) -> Duration ! protobuf.ProtoErrencode_empty
fn encode_empty(m: Empty) -> Bytesdecode_empty
fn decode_empty(b: Bytes) -> Empty ! protobuf.ProtoErrencode_field_mask
fn encode_field_mask(m: FieldMask) -> Bytesdecode_field_mask
fn decode_field_mask(b: Bytes) -> FieldMask ! protobuf.ProtoErrencode_any
fn encode_any(m: Any) -> Bytesdecode_any
fn decode_any(b: Bytes) -> Any ! protobuf.ProtoErrencode_double_value
fn encode_double_value(m: DoubleValue) -> Bytesdecode_double_value
fn decode_double_value(b: Bytes) -> DoubleValue ! protobuf.ProtoErrencode_float_value
fn encode_float_value(m: FloatValue) -> Bytesdecode_float_value
fn decode_float_value(b: Bytes) -> FloatValue ! protobuf.ProtoErrencode_int64_value
fn encode_int64_value(m: Int64Value) -> Bytesdecode_int64_value
fn decode_int64_value(b: Bytes) -> Int64Value ! protobuf.ProtoErrencode_uint64_value
fn encode_uint64_value(m: UInt64Value) -> Bytesdecode_uint64_value
fn decode_uint64_value(b: Bytes) -> UInt64Value ! protobuf.ProtoErrencode_int32_value
fn encode_int32_value(m: Int32Value) -> Bytesdecode_int32_value
fn decode_int32_value(b: Bytes) -> Int32Value ! protobuf.ProtoErrencode_uint32_value
fn encode_uint32_value(m: UInt32Value) -> Bytesdecode_uint32_value
fn decode_uint32_value(b: Bytes) -> UInt32Value ! protobuf.ProtoErrencode_bool_value
fn encode_bool_value(m: BoolValue) -> Bytesdecode_bool_value
fn decode_bool_value(b: Bytes) -> BoolValue ! protobuf.ProtoErrencode_string_value
fn encode_string_value(m: StringValue) -> Bytesdecode_string_value
fn decode_string_value(b: Bytes) -> StringValue ! protobuf.ProtoErrencode_bytes_value
fn encode_bytes_value(m: BytesValue) -> Bytesdecode_bytes_value
fn decode_bytes_value(b: Bytes) -> BytesValue ! protobuf.ProtoErrencode_value
fn encode_value(m: Value) -> BytesA Struct’s entries are written in key order (protobuf-go’s Deterministic marshaling).
decode_value
fn decode_value(b: Bytes) -> Value ! protobuf.ProtoErrencode_struct
fn encode_struct(m: Struct) -> Bytesdecode_struct
fn decode_struct(b: Bytes) -> Struct ! protobuf.ProtoErrencode_list_value
fn encode_list_value(m: ListValue) -> Bytesdecode_list_value
fn decode_list_value(b: Bytes) -> ListValue ! protobuf.ProtoErr