pub fn to_governor_capnp(&self, builder: &mut ::governor_capnp::data_object::Builder) {
        self.id.to_capnp(&mut builder.reborrow().get_id().unwrap());
        self.attributes
            .to_capnp(&mut builder.reborrow().get_attributes().unwrap());
        self.size.map(|s| builder.set_size(s as i64));
        builder.set_label(&self.label);
        builder.set_state(self.state);
        builder.set_data_type(self.data_type.to_capnp());
    }
/// To capnp for governor message
/// It does not fill `placement` and `assigned`, that must be done by caller
To capnp for governor message
It does not fill `placement` and `assigned`, that must be done by caller
To capnp for governor message It does not fill ` placement ` and ` assigned ` that must be done by caller
pub fn to_governor_capnp(&self, builder: &mut ::governor_capnp::data_object::Builder) {
        self.id.to_capnp(&mut builder.reborrow().get_id().unwrap());
        self.attributes
            .to_capnp(&mut builder.reborrow().get_attributes().unwrap());
        self.size.map(|s| builder.set_size(s as i64));
        builder.set_label(&self.label);
        builder.set_state(self.state);
        builder.set_data_type(self.data_type.to_capnp());
    }
pub fn to_governor_capnp ( & self , builder : & mut :: governor_capnp :: data_object :: Builder ) { self . id . to_capnp ( & mut builder . reborrow ( ) . get_id ( ) . unwrap ( ) ) ; self . attributes . to_capnp ( & mut builder . reborrow ( ) . get_attributes ( ) . unwrap ( ) ) ; self . size . map ( | s | builder . set_size ( s as i64 ) ) ; builder . set_label ( & self . label ) ; builder . set_state ( self . state ) ; builder . set_data_type ( self . data_type . to_capnp ( ) ) ; }
To capnp for governor message
It does not fill `placement` and `assigned`, that must be done by caller
To capnp for governor message It does not fill ` placement ` and ` assigned ` that must be done by caller
&self
builder
&mut ::governor_capnp::data_object::Builder
&self
builder
&mut ::governor_capnp::data_object::Builder