container_rack_lib/
lib.rs1pub mod rack;
2use std::vec;
3use url::Url;
4
5use rack::{Container, ContainerLink, ContainerDimensions};
6
7pub use crate::rack::generate_svg;
8
9pub fn supported_containers() -> Vec<Container> {
10 vec![Container {
11 vendor: "SmartStore".to_string(),
12 model: "Classic 1".to_string(),
13 description: "Rack generated with this container can also have classic 2 and classic 3 containers. And 'Home' versions of same containers.".to_string(),
14 links: vec![
15 ContainerLink{
16 url: Url::parse("https://www.orthexgroup.com/smartstore-classic/909-smartstore-classic-1-7310543520075.html").unwrap(),
17 title: "SmartStore Classic 1".to_string(),
18 },
19 ContainerLink{
20 url: Url::parse("https://www.orthexgroup.com/smartstore-classic/918-smartstore-classic-2-7310543521072.html").unwrap(),
21 title: "SmartStore Classic 2".to_string(),
22 },
23 ContainerLink{
24 url: Url::parse("https://www.orthexgroup.com/smartstore-classic/919-smartstore-classic-3-7310543522079.html").unwrap(),
25 title: "SmartStore Classic 3".to_string(),
26 }
27 ],
28 dimensions: ContainerDimensions {
29 width: 170,
30 depth: 210,
31 height: 56,
32 side_wing_from_box_top: 15,
33 side_wing_width: 8,
34 }
35 }]
36}