pub struct AttributeSpec {
pub name: String,
pub attr_type: AttributeType,
pub required: bool,
pub default: Option<AttributeDefault>,
pub doc: String,
}Expand description
One operator attribute definition.
Fields§
§name: StringAttribute name.
attr_type: AttributeTypeRequired ONNX attribute kind.
required: boolWhether callers must provide the attribute.
default: Option<AttributeDefault>Default used when the attribute is omitted.
doc: StringHuman-readable attribute documentation.
Trait Implementations§
Source§impl Clone for AttributeSpec
impl Clone for AttributeSpec
Source§fn clone(&self) -> AttributeSpec
fn clone(&self) -> AttributeSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttributeSpec
impl Debug for AttributeSpec
Source§impl<'de> Deserialize<'de> for AttributeSpec
impl<'de> Deserialize<'de> for AttributeSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AttributeSpec
impl PartialEq for AttributeSpec
Source§impl Serialize for AttributeSpec
impl Serialize for AttributeSpec
impl StructuralPartialEq for AttributeSpec
Auto Trait Implementations§
impl Freeze for AttributeSpec
impl RefUnwindSafe for AttributeSpec
impl Send for AttributeSpec
impl Sync for AttributeSpec
impl Unpin for AttributeSpec
impl UnsafeUnpin for AttributeSpec
impl UnwindSafe for AttributeSpec
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