Mobile support to come.
use crate::dto::OwnerName;
use crate::error::OrganizationError;
#[derive(Debug, Clone)]
pub struct GetOrganizationRequest {
pub org_name: OwnerName,
}
impl GetOrganizationRequest {
pub fn new(org_name: &str) -> Result<Self, OrganizationError> {
Ok(Self {
org_name: OwnerName::try_new(org_name)
.map_err(|e| OrganizationError::InvalidOrganizationName(e.to_string()))?,
})
}
}