Got it
This commit is contained in:
+1
-4
@@ -30,10 +30,7 @@ pub mod contact {
|
|||||||
|
|
||||||
impl AddContactRequest {
|
impl AddContactRequest {
|
||||||
pub fn is_valid(&self) -> bool {
|
pub fn is_valid(&self) -> bool {
|
||||||
self.phone_number.is_empty()
|
!self.phone_number.is_empty() || !self.user_id.is_nil()
|
||||||
|| self.firstname.is_none()
|
|
||||||
|| self.lastname.is_none()
|
|
||||||
|| self.user_id.is_nil()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user