Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time/MicroTime needs a wrapper #7

Open
kazk opened this issue Oct 28, 2021 · 0 comments
Open

Time/MicroTime needs a wrapper #7

kazk opened this issue Oct 28, 2021 · 0 comments
Labels
codegen help wanted Extra attention is needed

Comments

@kazk
Copy link
Member

kazk commented Oct 28, 2021

/// Time is a wrapper around time.Time which supports correct
/// marshaling to YAML and JSON. Wrappers are provided for many
/// of the factory methods that the time package offers.
///
/// +protobuf.options.marshal=false
/// +protobuf.as=Timestamp
/// +protobuf.options.(gogoproto.goproto_stringer)=false
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Time {
/// Represents seconds of UTC time since Unix epoch
/// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
/// 9999-12-31T23:59:59Z inclusive.
#[prost(int64, optional, tag="1")]
pub seconds: ::core::option::Option<i64>,
/// Non-negative fractions of a second at nanosecond resolution. Negative
/// second values with fractions must still have non-negative nanos values
/// that count forward in time. Must be from 0 to 999,999,999
/// inclusive. This field may be limited in precision depending on context.
#[prost(int32, optional, tag="2")]
pub nanos: ::core::option::Option<i32>,
}

@kazk kazk added the codegen label Oct 31, 2021
@clux clux moved this to Defining in Kube Roadmap Nov 3, 2021
@clux clux moved this from Defining to Backlog in Kube Roadmap Nov 4, 2021
@clux clux added the help wanted Extra attention is needed label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codegen help wanted Extra attention is needed
Projects
Status: Backlog
Development

No branches or pull requests

2 participants