pub fn default() -> Self {
        let placeholder_authn_statement = AuthNStatement {
            instant: Utc::now(),
            session_index: String::from(
                "This is totally a placeholder session_index, why is this here?",
            ),
            classref: String::from("This is totally a placeholder classref, why is this here?"),
            expiry: None,
        };

        Self {
            assertion_id: Uuid::new_v4().to_string(),
            attributes: vec![],
            authnstatement: placeholder_authn_statement,
            destination: String::from("This should have been set"),
            issuer: String::from("This should have been set"),
            relay_state: String::from("This should have been set"),
            issue_instant: Utc::now(),
            service_provider: ServiceProvider::test_generic("foo"),
            response_id: Uuid::new_v4().to_string(),
            assertion_consumer_service: None,
            session_length_seconds: 60, // a minute is plenty to be able to consume the assertion
            status: crate::constants::StatusCode::AuthnFailed,
            sign_assertion: true,
            sign_message: false,
            signing_key: None,
            signing_cert: None,
        }
    }
/// Default values, mostly so I can pull out a default assertion ID somewhere else, for now
/// TODO: ResponseElements::default, yes.
Default values, mostly so I can pull out a default assertion ID somewhere else, for now
TODO: ResponseElements::default, yes.
Default values mostly so I can pull out a default assertion ID somewhere else for now TODO : ResponseElements :: default yes .
pub fn default() -> Self {
        let placeholder_authn_statement = AuthNStatement {
            instant: Utc::now(),
            session_index: String::from(
                "This is totally a placeholder session_index, why is this here?",
            ),
            classref: String::from("This is totally a placeholder classref, why is this here?"),
            expiry: None,
        };
        Self {
            assertion_id: Uuid::new_v4().to_string(),
            attributes: vec![],
            authnstatement: placeholder_authn_statement,
            destination: String::from("This should have been set"),
            issuer: String::from("This should have been set"),
            relay_state: String::from("This should have been set"),
            issue_instant: Utc::now(),
            service_provider: ServiceProvider::test_generic("foo"),
            response_id: Uuid::new_v4().to_string(),
            assertion_consumer_service: None,
            session_length_seconds: 60, // a minute is plenty to be able to consume the assertion
            status: crate::constants::StatusCode::AuthnFailed,
            sign_assertion: true,
            sign_message: false,
            signing_key: None,
            signing_cert: None,
        }
    }
pub fn default ( ) -> Self { let placeholder_authn_statement = AuthNStatement { instant : Utc :: now ( ) , session_index : String :: from ( " " , ) , classref : String :: from ( " " ) , expiry : None , } ; Self { assertion_id : Uuid :: new_v4 ( ) . to_string ( ) , attributes : vec ! [ ] , authnstatement : placeholder_authn_statement , destination : String :: from ( " " ) , issuer : String :: from ( " " ) , relay_state : String :: from ( " " ) , issue_instant : Utc :: now ( ) , service_provider : ServiceProvider :: test_generic ( " " ) , response_id : Uuid :: new_v4 ( ) . to_string ( ) , assertion_consumer_service : None , session_length_seconds : 60 , // a minute is plenty to be able to consume the assertion status : crate :: constants :: StatusCode :: AuthnFailed , sign_assertion : true , sign_message : false , signing_key : None , signing_cert : None , } }
Default values, mostly so I can pull out a default assertion ID somewhere else, for now
TODO: ResponseElements::default, yes.
Default values mostly so I can pull out a default assertion ID somewhere else for now TODO : ResponseElements :: default yes .