pub struct CreateProviderInstanceBody {
pub base_url: CreateProviderInstanceBodyBaseUrl,
pub client_id: CreateProviderInstanceBodyClientId,
pub client_secret: CreateProviderInstanceBodyClientSecret,
pub display_name: CreateProviderInstanceBodyDisplayName,
pub enabled: Option<bool>,
pub id: CreateProviderInstanceBodyId,
pub kind: CreateProviderInstanceBodyKind,
pub logo_url: Option<String>,
}Expand description
CreateProviderInstanceBody
JSON schema
{
"type": "object",
"required": [
"baseUrl",
"clientId",
"clientSecret",
"displayName",
"id",
"kind"
],
"properties": {
"baseUrl": {
"type": "string",
"minLength": 1
},
"clientId": {
"type": "string",
"minLength": 1
},
"clientSecret": {
"type": "string",
"minLength": 1
},
"displayName": {
"type": "string",
"maxLength": 80,
"minLength": 1
},
"enabled": {
"type": "boolean"
},
"id": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"kind": {
"type": "string",
"enum": [
"github",
"gitlab",
"gitea"
]
},
"logoUrl": {
"type": [
"string",
"null"
]
}
}
}Fields§
§base_url: CreateProviderInstanceBodyBaseUrl§client_id: CreateProviderInstanceBodyClientId§client_secret: CreateProviderInstanceBodyClientSecret§display_name: CreateProviderInstanceBodyDisplayName§enabled: Option<bool>§id: CreateProviderInstanceBodyId§kind: CreateProviderInstanceBodyKind§logo_url: Option<String>Implementations§
Source§impl CreateProviderInstanceBody
impl CreateProviderInstanceBody
pub fn builder() -> CreateProviderInstanceBody
Trait Implementations§
Source§impl Clone for CreateProviderInstanceBody
impl Clone for CreateProviderInstanceBody
Source§fn clone(&self) -> CreateProviderInstanceBody
fn clone(&self) -> CreateProviderInstanceBody
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 CreateProviderInstanceBody
impl Debug for CreateProviderInstanceBody
Source§impl<'de> Deserialize<'de> for CreateProviderInstanceBody
impl<'de> Deserialize<'de> for CreateProviderInstanceBody
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<&CreateProviderInstanceBody> for CreateProviderInstanceBody
impl From<&CreateProviderInstanceBody> for CreateProviderInstanceBody
Source§fn from(value: &CreateProviderInstanceBody) -> Self
fn from(value: &CreateProviderInstanceBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateProviderInstanceBody> for CreateProviderInstanceBody
impl From<CreateProviderInstanceBody> for CreateProviderInstanceBody
Source§fn from(value: CreateProviderInstanceBody) -> Self
fn from(value: CreateProviderInstanceBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreateProviderInstanceBody> for CreateProviderInstanceBody
impl TryFrom<CreateProviderInstanceBody> for CreateProviderInstanceBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateProviderInstanceBody) -> Result<Self, ConversionError>
fn try_from(value: CreateProviderInstanceBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateProviderInstanceBody
impl RefUnwindSafe for CreateProviderInstanceBody
impl Send for CreateProviderInstanceBody
impl Sync for CreateProviderInstanceBody
impl Unpin for CreateProviderInstanceBody
impl UnsafeUnpin for CreateProviderInstanceBody
impl UnwindSafe for CreateProviderInstanceBody
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