pub struct GitlabConfig {
pub base_url: String,
pub private_token: String,
}Expand description
How the server authenticates to GitLab. private_token is an Owner-level
PAT (or an admin PAT for instance-wide work) and is never read back out.
Fields§
§base_url: StringOverride for self-managed, e.g. https://gitlab.example.com/api/v4.
private_token: StringTrait Implementations§
Source§impl Clone for GitlabConfig
impl Clone for GitlabConfig
Source§impl Debug for GitlabConfig
impl Debug for GitlabConfig
Source§impl<'de> Deserialize<'de> for GitlabConfig
impl<'de> Deserialize<'de> for GitlabConfig
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
Auto Trait Implementations§
impl Freeze for GitlabConfig
impl RefUnwindSafe for GitlabConfig
impl Send for GitlabConfig
impl Sync for GitlabConfig
impl Unpin for GitlabConfig
impl UnsafeUnpin for GitlabConfig
impl UnwindSafe for GitlabConfig
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