pub struct EncodeProto { /* private fields */ }
Expand description
Builder for the EncodeProto
operation.
Implementations§
Source§impl EncodeProto
impl EncodeProto
Sourcepub fn field_names<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
pub fn field_names<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
Sets the field_names
attribute.
Sourcepub fn message_type<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn message_type<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the message_type
attribute.
Sourcepub fn descriptor_source<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn descriptor_source<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the descriptor_source
attribute.
Sourcepub fn Tinput_types<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
pub fn Tinput_types<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
Sets the Tinput_types
attribute.
Sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
Trait Implementations§
Source§impl Debug for EncodeProto
impl Debug for EncodeProto
Source§impl Default for EncodeProto
impl Default for EncodeProto
Source§fn default() -> EncodeProto
fn default() -> EncodeProto
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncodeProto
impl RefUnwindSafe for EncodeProto
impl Send for EncodeProto
impl Sync for EncodeProto
impl Unpin for EncodeProto
impl UnwindSafe for EncodeProto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more