pub struct YiviConfig {
pub requestor_url: UrlPwa,
pub requestor_creds: Credentials<SigningKey>,
pub server_name: String,
pub server_key: Option<VerifyingKey>,
pub chained_sessions: ChainedSessionsConfig,
pub card: CardConfig,
}Fields§
§requestor_url: UrlPwaWhere can the Yivi server trusted by the authentication server be reached by the hub client for starting disclosure requests?
requestor_creds: Credentials<SigningKey>§server_name: StringWhat server name to expect in signed session results
server_key: Option<VerifyingKey>Verify signed session results using this key. If not set the key is retrieved from the yivi server.
chained_sessions: ChainedSessionsConfigFine-tune handling of chained sessions, see
api::auths::AuthStartReq::yivi_chained_session.
card: CardConfigConfiguration of the pubhubs card issued by the authentication server
Implementations§
Source§impl YiviConfig
impl YiviConfig
pub fn server_creds(&self) -> Credentials<VerifyingKey>
Trait Implementations§
Source§impl Clone for YiviConfig
impl Clone for YiviConfig
Source§fn clone(&self) -> YiviConfig
fn clone(&self) -> YiviConfig
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 YiviConfig
impl Debug for YiviConfig
Source§impl<'de> Deserialize<'de> for YiviConfig
impl<'de> Deserialize<'de> for YiviConfig
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
Source§impl PrepareConfig<Rc<Extensions>> for YiviConfig
impl PrepareConfig<Rc<Extensions>> for YiviConfig
Auto Trait Implementations§
impl Freeze for YiviConfig
impl RefUnwindSafe for YiviConfig
impl Send for YiviConfig
impl Sync for YiviConfig
impl Unpin for YiviConfig
impl UnsafeUnpin for YiviConfig
impl UnwindSafe for YiviConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more