use resources::AssetIdentifier;
#[derive(Debug, Clone)]
pub struct AllowTrust {
trustee: String,
trustor: String,
asset: AssetIdentifier,
authorize: bool,
}
impl AllowTrust {
pub fn new(
trustee: String,
trustor: String,
asset: AssetIdentifier,
authorize: bool,
) -> AllowTrust {
AllowTrust {
trustee,
trustor,
asset,
authorize,
}
}
pub fn trustee(&self) -> &str {
&self.trustee
}
pub fn trustor(&self) -> &str {
&self.trustor
}
pub fn asset(&self) -> &AssetIdentifier {
&self.asset
}
pub fn authorize(&self) -> bool {
self.authorize
}
}