pub struct SiloAuthSettings {
pub device_token_max_ttl_seconds: Option<u32>,
pub silo_id: Uuid,
}Expand description
View of silo authentication settings
JSON schema
{
"description": "View of silo authentication settings",
"type": "object",
"required": [
"silo_id"
],
"properties": {
"device_token_max_ttl_seconds": {
"description": "Maximum lifetime of a device token in seconds. If set to null, users will be able to create tokens that do not expire.",
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"silo_id": {
"type": "string",
"format": "uuid"
}
}
}Fields§
§device_token_max_ttl_seconds: Option<u32>Maximum lifetime of a device token in seconds. If set to null, users will be able to create tokens that do not expire.
silo_id: UuidImplementations§
Source§impl SiloAuthSettings
impl SiloAuthSettings
pub fn builder() -> SiloAuthSettings
Trait Implementations§
Source§impl Clone for SiloAuthSettings
impl Clone for SiloAuthSettings
Source§fn clone(&self) -> SiloAuthSettings
fn clone(&self) -> SiloAuthSettings
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 SiloAuthSettings
impl Debug for SiloAuthSettings
Source§impl<'de> Deserialize<'de> for SiloAuthSettings
impl<'de> Deserialize<'de> for SiloAuthSettings
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 From<&SiloAuthSettings> for SiloAuthSettings
impl From<&SiloAuthSettings> for SiloAuthSettings
Source§fn from(value: &SiloAuthSettings) -> Self
fn from(value: &SiloAuthSettings) -> Self
Converts to this type from the input type.
Source§impl From<SiloAuthSettings> for SiloAuthSettings
impl From<SiloAuthSettings> for SiloAuthSettings
Source§fn from(value: SiloAuthSettings) -> Self
fn from(value: SiloAuthSettings) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for SiloAuthSettings
impl JsonSchema for SiloAuthSettings
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for SiloAuthSettings
impl Serialize for SiloAuthSettings
Source§impl TryFrom<SiloAuthSettings> for SiloAuthSettings
impl TryFrom<SiloAuthSettings> for SiloAuthSettings
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SiloAuthSettings) -> Result<Self, ConversionError>
fn try_from(value: SiloAuthSettings) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SiloAuthSettings
impl RefUnwindSafe for SiloAuthSettings
impl Send for SiloAuthSettings
impl Sync for SiloAuthSettings
impl Unpin for SiloAuthSettings
impl UnwindSafe for SiloAuthSettings
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