fn generate_signals(payload: &i64) -> SingularPtrField<Signals> {
    let mut namespace = NameSpace::new();
    namespace.name = "VirtualInterface".to_string();

    let mut signal_id = SignalId::new();
    signal_id.name = "virtual_signal".to_string();
    signal_id.namespace = SingularPtrField::some(namespace);

    let mut signal = Signal::new();
    signal.id = SingularPtrField::some(signal_id);
    signal.payload = Option::from(Signal_oneof_payload::integer(*payload));

    let signals_vector = vec![signal];

    let mut signals = Signals::new();
    signals.signal = RepeatedField::from_vec(signals_vector);

    SingularPtrField::some(signals)
}
// Generating set of Signals, for publishing
Generating set of Signals, for publishing
Generating set of Signals for publishing
fn generate_signals(payload: &i64) -> SingularPtrField<Signals> {
    let mut namespace = NameSpace::new();
    namespace.name = "VirtualInterface".to_string();
    let mut signal_id = SignalId::new();
    signal_id.name = "virtual_signal".to_string();
    signal_id.namespace = SingularPtrField::some(namespace);
    let mut signal = Signal::new();
    signal.id = SingularPtrField::some(signal_id);
    signal.payload = Option::from(Signal_oneof_payload::integer(*payload));
    let signals_vector = vec![signal];
    let mut signals = Signals::new();
    signals.signal = RepeatedField::from_vec(signals_vector);
    SingularPtrField::some(signals)
}
fn generate_signals ( payload : & i64 ) -> SingularPtrField < Signals > { let mut namespace = NameSpace :: new ( ) ; namespace . name = " " . to_string ( ) ; let mut signal_id = SignalId :: new ( ) ; signal_id . name = " " . to_string ( ) ; signal_id . namespace = SingularPtrField :: some ( namespace ) ; let mut signal = Signal :: new ( ) ; signal . id = SingularPtrField :: some ( signal_id ) ; signal . payload = Option :: from ( Signal_oneof_payload :: integer ( * payload ) ) ; let signals_vector = vec ! [ signal ] ; let mut signals = Signals :: new ( ) ; signals . signal = RepeatedField :: from_vec ( signals_vector ) ; SingularPtrField :: some ( signals ) }
Generating set of Signals, for publishing
Generating set of Signals for publishing
payload
&i64