#[non_exhaustive]pub struct EndpointConfig {
pub api_base: String,
pub pgc_base: String,
pub intl_base: String,
pub comment_base: String,
pub passport_base: String,
pub tv_passport_base: String,
pub tv_passport_poll_base: String,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_base: String§pgc_base: String§intl_base: String§comment_base: String§passport_base: String§tv_passport_base: String§tv_passport_poll_base: StringImplementations§
Source§impl EndpointConfig
impl EndpointConfig
pub fn with_api_base(self, api_base: impl Into<String>) -> Self
pub fn with_pgc_base(self, pgc_base: impl Into<String>) -> Self
pub fn with_intl_base(self, intl_base: impl Into<String>) -> Self
pub fn with_comment_base(self, comment_base: impl Into<String>) -> Self
pub fn with_passport_base(self, passport_base: impl Into<String>) -> Self
pub fn with_tv_passport_base(self, tv_passport_base: impl Into<String>) -> Self
pub fn with_tv_passport_poll_base( self, tv_passport_poll_base: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for EndpointConfig
impl Clone for EndpointConfig
Source§fn clone(&self) -> EndpointConfig
fn clone(&self) -> EndpointConfig
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 EndpointConfig
impl Debug for EndpointConfig
Auto Trait Implementations§
impl Freeze for EndpointConfig
impl RefUnwindSafe for EndpointConfig
impl Send for EndpointConfig
impl Sync for EndpointConfig
impl Unpin for EndpointConfig
impl UnsafeUnpin for EndpointConfig
impl UnwindSafe for EndpointConfig
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