pub struct SamlAuthnRequest {
pub id: String,
pub version: String,
pub issue_instant: DateTime<Utc>,
pub destination: Option<String>,
pub protocol_binding: Option<String>,
pub assertion_consumer_service_url: Option<String>,
pub issuer: String,
pub name_id_policy: Option<SamlNameIdPolicy>,
pub requested_authn_context: Option<SamlRequestedAuthnContext>,
pub signature: Option<String>,
}Expand description
SAML 认证请求
Fields§
§id: String请求 ID
version: String版本
issue_instant: DateTime<Utc>发行时间
destination: Option<String>目标
protocol_binding: Option<String>协议绑定
assertion_consumer_service_url: Option<String>断言消费者服务 URL
issuer: String发行人
name_id_policy: Option<SamlNameIdPolicy>名称 ID 策略
requested_authn_context: Option<SamlRequestedAuthnContext>请求认证上下文
signature: Option<String>签名
Implementations§
Source§impl SamlAuthnRequest
impl SamlAuthnRequest
Sourcepub fn with_destination(self, destination: impl Into<String>) -> Self
pub fn with_destination(self, destination: impl Into<String>) -> Self
设置目标
Sourcepub fn with_protocol_binding(self, binding: SamlBinding) -> Self
pub fn with_protocol_binding(self, binding: SamlBinding) -> Self
设置协议绑定
Sourcepub fn with_acs_url(self, url: impl Into<String>) -> Self
pub fn with_acs_url(self, url: impl Into<String>) -> Self
设置 ACS URL
Sourcepub fn with_name_id_policy(self, policy: SamlNameIdPolicy) -> Self
pub fn with_name_id_policy(self, policy: SamlNameIdPolicy) -> Self
设置名称 ID 策略
Sourcepub fn with_authn_context(self, context: SamlRequestedAuthnContext) -> Self
pub fn with_authn_context(self, context: SamlRequestedAuthnContext) -> Self
设置请求认证上下文
Trait Implementations§
Source§impl Clone for SamlAuthnRequest
impl Clone for SamlAuthnRequest
Source§fn clone(&self) -> SamlAuthnRequest
fn clone(&self) -> SamlAuthnRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SamlAuthnRequest
impl Debug for SamlAuthnRequest
Source§impl<'de> Deserialize<'de> for SamlAuthnRequest
impl<'de> Deserialize<'de> for SamlAuthnRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SamlAuthnRequest
impl RefUnwindSafe for SamlAuthnRequest
impl Send for SamlAuthnRequest
impl Sync for SamlAuthnRequest
impl Unpin for SamlAuthnRequest
impl UnsafeUnpin for SamlAuthnRequest
impl UnwindSafe for SamlAuthnRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more