package rawoptional

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawoptional"

Index

Types

type Bool

type Bool struct {
	Value    bool
	HasValue bool
}

func (*Bool) ToProto

func (b *Bool) ToProto() *bool

type Duration

type Duration struct {
	Value    time.Duration
	HasValue bool
}

func (*Duration) MustFromProto

func (v *Duration) MustFromProto(proto *durationpb.Duration)

func (*Duration) ToDuration

func (v *Duration) ToDuration() *time.Duration

func (*Duration) ToProto

func (v *Duration) ToProto() *durationpb.Duration

type Int64

type Int64 struct {
	Value    int64
	HasValue bool
}

func (*Int64) ToProto

func (v *Int64) ToProto() *int64

type Time

type Time struct {
	Value    time.Time
	HasValue bool
}

func (*Time) MustFromProto

func (v *Time) MustFromProto(proto *timestamppb.Timestamp)

func (*Time) ToProto

func (v *Time) ToProto() *timestamppb.Timestamp

func (*Time) ToTime

func (v *Time) ToTime() *time.Time

Source Files

rawoptional.go

Version
v3.99.7
Published
Feb 7, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
1 minute ago

Tools for package owners.