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