pub struct FunctionProto {
pub name: String,
pub input: Vec<String>,
pub output: Vec<String>,
pub attribute: Vec<String>,
pub attribute_proto: Vec<AttributeProto>,
pub node: Vec<NodeProto>,
pub doc_string: String,
pub opset_import: Vec<OperatorSetIdProto>,
pub domain: String,
pub overload: String,
pub value_info: Vec<ValueInfoProto>,
pub metadata_props: Vec<StringStringEntryProto>,
}Fields§
§name: StringThe name of the function, similar to op_type in NodeProto. This is part of the unique-id (domain, name, overload) of FunctionProtos in a model.
input: Vec<String>The inputs and outputs of the function.
output: Vec<String>§attribute: Vec<String>The attribute parameters of the function. It is for function parameters without default values.
attribute_proto: Vec<AttributeProto>The attribute protos of the function. It is for function attributes with default values. A function attribute shall be represented either as a string attribute or an AttributeProto, not both.
node: Vec<NodeProto>The nodes in the function.
doc_string: StringA human-readable documentation for this function. Markdown is allowed.
opset_import: Vec<OperatorSetIdProto>§domain: StringThe domain which this function belongs to. This is part of the unique-id (domain, name, overload) of FunctionProtos in a model.
overload: StringThe overload identifier of the function. This is part of the unique-id (domain, name, overload) of FunctionProtos in a model.
value_info: Vec<ValueInfoProto>Information for the values in the function. The ValueInfoProto.name’s must be distinct and refer to names in the function (including inputs, outputs, and intermediate values). It is optional for a value to appear in value_info list.
metadata_props: Vec<StringStringEntryProto>Named metadata values; keys should be distinct.
Trait Implementations§
Source§impl Clone for FunctionProto
impl Clone for FunctionProto
Source§fn clone(&self) -> FunctionProto
fn clone(&self) -> FunctionProto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FunctionProto
impl Debug for FunctionProto
Source§impl Default for FunctionProto
impl Default for FunctionProto
Source§fn default() -> FunctionProto
fn default() -> FunctionProto
Source§impl Message for FunctionProto
impl Message for FunctionProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.