pub struct RepositoryConfigBuilder { /* private fields */ }
Expand description
Convenience wrapper for generating RepositoryConfig values.
Implementations§
Source§impl RepositoryConfigBuilder
impl RepositoryConfigBuilder
pub fn new(repo_url: RepositoryUrl) -> Self
pub fn repo_url(self, repo_url: RepositoryUrl) -> Self
pub fn root_version(self, root_version: u32) -> Self
pub fn root_threshold(self, root_threshold: u32) -> Self
pub fn add_root_key(self, key: RepositoryKey) -> Self
pub fn add_mirror(self, mirror: impl Into<MirrorConfig>) -> Self
pub fn use_local_mirror(self, use_local_mirror: bool) -> Self
pub fn repo_storage_type(self, repo_storage_type: RepositoryStorageType) -> Self
pub fn build(self) -> RepositoryConfig
Trait Implementations§
Source§impl Clone for RepositoryConfigBuilder
impl Clone for RepositoryConfigBuilder
Source§fn clone(&self) -> RepositoryConfigBuilder
fn clone(&self) -> RepositoryConfigBuilder
Returns a copy 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 moreSource§impl Debug for RepositoryConfigBuilder
impl Debug for RepositoryConfigBuilder
Source§impl From<RepositoryConfig> for RepositoryConfigBuilder
impl From<RepositoryConfig> for RepositoryConfigBuilder
Source§fn from(config: RepositoryConfig) -> Self
fn from(config: RepositoryConfig) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryConfigBuilder> for RepositoryConfig
impl From<RepositoryConfigBuilder> for RepositoryConfig
Source§fn from(builder: RepositoryConfigBuilder) -> Self
fn from(builder: RepositoryConfigBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RepositoryConfigBuilder
impl RefUnwindSafe for RepositoryConfigBuilder
impl Send for RepositoryConfigBuilder
impl Sync for RepositoryConfigBuilder
impl Unpin for RepositoryConfigBuilder
impl UnwindSafe for RepositoryConfigBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)