pub fn new (name : &String, address: &String, deadline: &String, goal: &String) -> Campaign{
        let deadline : u64 = deadline.parse().expect("Deadline provided is not a valid integer.");
        let goal : u64 = goal.parse().expect("Campaign goal provided is not a valid integer.");
        Campaign {
            name: name.clone(),
            address: address.clone(),
            deadline: deadline,
            goal: goal,
        } 
    }
/// Create a new `Campaign`. Verifies that the deadline and the goal are valid `u64` integers
Create a new `Campaign`. Verifies that the deadline and the goal are valid `u64` integers
Create a new ` Campaign ` . Verifies that the deadline and the goal are valid ` u64 ` integers
pub fn new (name : &String, address: &String, deadline: &String, goal: &String) -> Campaign{
        let deadline : u64 = deadline.parse().expect("Deadline provided is not a valid integer.");
        let goal : u64 = goal.parse().expect("Campaign goal provided is not a valid integer.");
        Campaign {
            name: name.clone(),
            address: address.clone(),
            deadline: deadline,
            goal: goal,
        } 
    }
pub fn new ( name : & String , address : & String , deadline : & String , goal : & String ) -> Campaign { let deadline : u64 = deadline . parse ( ) . expect ( " " ) ; let goal : u64 = goal . parse ( ) . expect ( " " ) ; Campaign { name : name . clone ( ) , address : address . clone ( ) , deadline : deadline , goal : goal , } }
Create a new `Campaign`.
Create a new ` Campaign ` .
name
&String
address
&String
deadline
&String
goal
&String
name
&String
address
&String
deadline
&String
goal
&String