pub struct WikiConfig {
pub platform: WikiPlatform,
pub repository: String,
pub token: Option<String>,
pub base_url: Option<String>,
}Expand description
Configuration for wiki synchronization.
Fields§
§platform: WikiPlatformThe platform to use.
repository: StringRepository identifier (owner/repo for GitHub, project path for GitLab).
token: Option<String>API token for authentication.
base_url: Option<String>Base URL for self-hosted instances.
Implementations§
Source§impl WikiConfig
impl WikiConfig
Sourcepub fn new(platform: WikiPlatform, repository: impl Into<String>) -> Self
pub fn new(platform: WikiPlatform, repository: impl Into<String>) -> Self
Create a new wiki configuration.
Sourcepub fn with_token(self, token: impl Into<String>) -> Self
pub fn with_token(self, token: impl Into<String>) -> Self
Set the API token.
Sourcepub fn with_base_url(self, url: impl Into<String>) -> Self
pub fn with_base_url(self, url: impl Into<String>) -> Self
Set the base URL.
Trait Implementations§
Source§impl Clone for WikiConfig
impl Clone for WikiConfig
Source§fn clone(&self) -> WikiConfig
fn clone(&self) -> WikiConfig
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 moreAuto Trait Implementations§
impl Freeze for WikiConfig
impl RefUnwindSafe for WikiConfig
impl Send for WikiConfig
impl Sync for WikiConfig
impl Unpin for WikiConfig
impl UnwindSafe for WikiConfig
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