pub fn new_with_time<T: TimeZone>(
        time: DateTime<T>,
        event_type: impl ToString,
        component_name: impl ToString,
        component_instance: impl ToString,
    ) -> Self {
        Event {
            timestamp_nanos: datetime_to_timestamp(&time),
            event_type: event_type.to_string(),
            component_name: component_name.to_string(),
            component_instance: component_instance.to_string(),
            event_files: vec![],
        }
    }
/// Create a new Event at the given time.
Create a new Event at the given time.
Create a new Event at the given time .
pub fn new_with_time<T: TimeZone>(
        time: DateTime<T>,
        event_type: impl ToString,
        component_name: impl ToString,
        component_instance: impl ToString,
    ) -> Self {
        Event {
            timestamp_nanos: datetime_to_timestamp(&time),
            event_type: event_type.to_string(),
            component_name: component_name.to_string(),
            component_instance: component_instance.to_string(),
            event_files: vec![],
        }
    }
pub fn new_with_time < T : TimeZone > ( time : DateTime < T > , event_type : impl ToString , component_name : impl ToString , component_instance : impl ToString , ) -> Self { Event { timestamp_nanos : datetime_to_timestamp ( & time ) , event_type : event_type . to_string ( ) , component_name : component_name . to_string ( ) , component_instance : component_instance . to_string ( ) , event_files : vec ! [ ] , } }
Create a new Event at the given time.
Create a new Event at the given time .
time
DateTime<T>
event_type
impl ToString
component_name
impl ToString
component_instance
impl ToString