pub struct ConfigSso {
pub enable: Option<bool>,
pub secret: Option<String>,
pub id: Option<String>,
pub scope: Option<String>,
pub auth_endpoint: Option<String>,
pub token_endpoint: Option<String>,
pub user_api_endpoint: Option<String>,
pub discovery_endpoint: Option<String>,
pub button_text: Option<String>,
pub button_color: Option<String>,
}Fields§
§enable: Option<bool>§secret: Option<String>§id: Option<String>§scope: Option<String>§auth_endpoint: Option<String>§token_endpoint: Option<String>§user_api_endpoint: Option<String>§discovery_endpoint: Option<String>Implementations§
Source§impl ConfigSso
impl ConfigSso
Sourcepub fn enable(&self) -> bool
pub fn enable(&self) -> bool
Returns the value of enable, or the default value if enable is unset.
Sourcepub fn secret(&self) -> &str
pub fn secret(&self) -> &str
Returns the value of secret, or the default value if secret is unset.
Sourcepub fn scope(&self) -> &str
pub fn scope(&self) -> &str
Returns the value of scope, or the default value if scope is unset.
Sourcepub fn auth_endpoint(&self) -> &str
pub fn auth_endpoint(&self) -> &str
Returns the value of auth_endpoint, or the default value if auth_endpoint is unset.
Sourcepub fn token_endpoint(&self) -> &str
pub fn token_endpoint(&self) -> &str
Returns the value of token_endpoint, or the default value if token_endpoint is unset.
Sourcepub fn user_api_endpoint(&self) -> &str
pub fn user_api_endpoint(&self) -> &str
Returns the value of user_api_endpoint, or the default value if user_api_endpoint is unset.
Sourcepub fn discovery_endpoint(&self) -> &str
pub fn discovery_endpoint(&self) -> &str
Returns the value of discovery_endpoint, or the default value if discovery_endpoint is unset.
Returns the value of button_text, or the default value if button_text is unset.
Returns the value of button_color, or the default value if button_color is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ConfigSso
impl<'de> Deserialize<'de> for ConfigSso
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 Message for ConfigSso
impl Message for ConfigSso
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for ConfigSso
Auto Trait Implementations§
impl Freeze for ConfigSso
impl RefUnwindSafe for ConfigSso
impl Send for ConfigSso
impl Sync for ConfigSso
impl Unpin for ConfigSso
impl UnwindSafe for ConfigSso
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request