1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#[derive (Eq, PartialEq, Hash)]
pub struct Org {
	pub org			: String,
	pub unit		: String,
	pub office		: String,
}

impl Org {
	/// Creates a new Org
	pub fn new (
		org			: String,
		unit		: String,
		office		: String,
	) -> Org {
		Org {
			org			: org,
			unit		: unit,
			office		: office,
		}
	}
	
	/// Creates a new Org with str
	pub fn new_str (
		org			: &str,
		unit		: &str,
		office		: &str,
	) -> Org {
		Org {
			org			: org.to_string(),
			unit		: unit.to_string(),
			office		: office.to_string(),
		}
	}
}