pub struct ServiceBinding {
    pub servicetype: SamlBindingType,
    pub binding: SamlBinding,
    pub location: String,
    pub index: u8,
}
Expand description

Types of bindings for service providers TODO: implement a way of pulling the first/a given logout, or the first/ a given assertionconsumer

Fields

servicetype: SamlBindingType

SamlBindingType Binding type, things like HTTP-POST or HTTP-REDIRECT

binding: SamlBinding

Binding method

location: String

Where to send the response to

index: u8

Consumer index, if there’s more than 256 then wow, seriously?

Implementations

return a default broken binding for testing or later changing - the ACS is set to http://0.0.0.0:0/SAML/acs

TODO: actually use this in ServiceProvider from_xml or something

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.