pub struct ServiceIcon {
pub rectangle: Box<RectangleGeometry>,
pub code: String,
}Expand description
ServiceIcon : An icon representing a service.
Fields§
§rectangle: Box<RectangleGeometry>§code: StringSee https://osdm.io/spec/catalog-of-code-lists/#GraphicsItems
Implementations§
Source§impl ServiceIcon
impl ServiceIcon
Sourcepub fn new(rectangle: RectangleGeometry, code: String) -> ServiceIcon
pub fn new(rectangle: RectangleGeometry, code: String) -> ServiceIcon
An icon representing a service.
Trait Implementations§
Source§impl Clone for ServiceIcon
impl Clone for ServiceIcon
Source§fn clone(&self) -> ServiceIcon
fn clone(&self) -> ServiceIcon
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceIcon
impl Debug for ServiceIcon
Source§impl Default for ServiceIcon
impl Default for ServiceIcon
Source§fn default() -> ServiceIcon
fn default() -> ServiceIcon
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceIcon
impl<'de> Deserialize<'de> for ServiceIcon
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 ServiceIcon
impl PartialEq for ServiceIcon
Source§impl Serialize for ServiceIcon
impl Serialize for ServiceIcon
impl StructuralPartialEq for ServiceIcon
Auto Trait Implementations§
impl Freeze for ServiceIcon
impl RefUnwindSafe for ServiceIcon
impl Send for ServiceIcon
impl Sync for ServiceIcon
impl Unpin for ServiceIcon
impl UnwindSafe for ServiceIcon
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