pub struct InitDefaultsResponse {
pub base_url: String,
pub database: InitDefaultsResponseDatabase,
pub providers: InitDefaultsResponseProviders,
pub web_base_url: Option<String>,
}Expand description
InitDefaultsResponse
JSON schema
{
"type": "object",
"required": [
"baseUrl",
"database",
"providers",
"webBaseUrl"
],
"properties": {
"baseUrl": {
"type": "string"
},
"database": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
},
"providers": {
"type": "object",
"required": [
"codeberg",
"github",
"gitlab"
],
"properties": {
"codeberg": {
"type": "object",
"required": [
"clientId",
"clientSecretSet"
],
"properties": {
"clientId": {
"type": "string"
},
"clientSecretSet": {
"type": "boolean"
}
}
},
"github": {
"type": "object",
"required": [
"clientId",
"clientSecretSet"
],
"properties": {
"clientId": {
"type": "string"
},
"clientSecretSet": {
"type": "boolean"
}
}
},
"gitlab": {
"type": "object",
"required": [
"clientId",
"clientSecretSet"
],
"properties": {
"clientId": {
"type": "string"
},
"clientSecretSet": {
"type": "boolean"
}
}
}
}
},
"webBaseUrl": {
"type": [
"string",
"null"
]
}
}
}Fields§
§base_url: String§database: InitDefaultsResponseDatabase§providers: InitDefaultsResponseProviders§web_base_url: Option<String>Implementations§
Source§impl InitDefaultsResponse
impl InitDefaultsResponse
pub fn builder() -> InitDefaultsResponse
Trait Implementations§
Source§impl Clone for InitDefaultsResponse
impl Clone for InitDefaultsResponse
Source§fn clone(&self) -> InitDefaultsResponse
fn clone(&self) -> InitDefaultsResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InitDefaultsResponse
impl Debug for InitDefaultsResponse
Source§impl<'de> Deserialize<'de> for InitDefaultsResponse
impl<'de> Deserialize<'de> for InitDefaultsResponse
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<&InitDefaultsResponse> for InitDefaultsResponse
impl From<&InitDefaultsResponse> for InitDefaultsResponse
Source§fn from(value: &InitDefaultsResponse) -> Self
fn from(value: &InitDefaultsResponse) -> Self
Converts to this type from the input type.
Source§impl From<InitDefaultsResponse> for InitDefaultsResponse
impl From<InitDefaultsResponse> for InitDefaultsResponse
Source§fn from(value: InitDefaultsResponse) -> Self
fn from(value: InitDefaultsResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for InitDefaultsResponse
impl Serialize for InitDefaultsResponse
Source§impl TryFrom<InitDefaultsResponse> for InitDefaultsResponse
impl TryFrom<InitDefaultsResponse> for InitDefaultsResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: InitDefaultsResponse) -> Result<Self, ConversionError>
fn try_from(value: InitDefaultsResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for InitDefaultsResponse
impl RefUnwindSafe for InitDefaultsResponse
impl Send for InitDefaultsResponse
impl Sync for InitDefaultsResponse
impl Unpin for InitDefaultsResponse
impl UnsafeUnpin for InitDefaultsResponse
impl UnwindSafe for InitDefaultsResponse
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