pub struct Config {
pub pconf: String,
pub user: String,
pub token: String,
pub endpoint: String,
}Expand description
§Config
is the configuration needed to interact with any platform it contains 4 atributes
pconf: the name for the configuration, showed in the error messages.user: the user or org-name registerd in the platform.token: the token to authenticate the user.endpont: the endpoint used to interact with the platform.
§Example
use grp_core::Config;
let config = Config::new("internal", "feraxhp", "gh-******", "api.github.com");Fields§
§pconf: String§user: String§token: String§endpoint: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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