pub struct ExposedPortMeta {
pub label: String,
pub description: String,
pub icon: String,
}Expand description
Per-placement metadata for an entry in a graph’s exposed_ports map.
All fields are optional: empty strings fall back to the registration’s
PortDef::label / PortDef::description / PortDef::icon when the
brush bar renders the entry.
Lives in Graph::exposed_ports rather than on PortDef per instance
because the brush bar is a single user-facing surface — centralizing
“what the user sees” in one ordered dict makes display order natural
(map iteration order is the brush-bar order) and gives the
brush-author editor one canonical place to read and write.
Fields§
§label: String§description: String§icon: StringTrait Implementations§
Source§impl Clone for ExposedPortMeta
impl Clone for ExposedPortMeta
Source§fn clone(&self) -> ExposedPortMeta
fn clone(&self) -> ExposedPortMeta
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 ExposedPortMeta
impl Debug for ExposedPortMeta
Source§impl Default for ExposedPortMeta
impl Default for ExposedPortMeta
Source§fn default() -> ExposedPortMeta
fn default() -> ExposedPortMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExposedPortMeta
impl<'de> Deserialize<'de> for ExposedPortMeta
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
impl Eq for ExposedPortMeta
Source§impl PartialEq for ExposedPortMeta
impl PartialEq for ExposedPortMeta
Source§fn eq(&self, other: &ExposedPortMeta) -> bool
fn eq(&self, other: &ExposedPortMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExposedPortMeta
impl Serialize for ExposedPortMeta
impl StructuralPartialEq for ExposedPortMeta
Auto Trait Implementations§
impl Freeze for ExposedPortMeta
impl RefUnwindSafe for ExposedPortMeta
impl Send for ExposedPortMeta
impl Sync for ExposedPortMeta
impl Unpin for ExposedPortMeta
impl UnsafeUnpin for ExposedPortMeta
impl UnwindSafe for ExposedPortMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.