Struct lcode_config::config::user_nest::Urls
source · pub struct Urls {
pub origin: String,
pub question_url: String,
pub graphql: String,
pub all_problem_api: String,
pub submit: String,
pub test: String,
pub submissions: String,
pub favorites: String,
pub points: String,
}
Fields§
§origin: String
§question_url: String
§graphql: String
§all_problem_api: String
§submit: String
§test: String
§submissions: String
§favorites: String
§points: String
Implementations§
source§impl Urls
impl Urls
pub fn new(suffi: Suffix) -> Self
pub fn mod_all_pb_api(&self, category: &str) -> String
pub fn mod_submit(&self, slug: &str) -> String
pub fn mod_test(&self, slug: &str) -> String
pub fn mod_submissions(&self, id: &str) -> String
pub fn get_qs_url(&self, slug: &str) -> String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Urls
impl<'de> Deserialize<'de> for Urls
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
source§impl PartialEq for Urls
impl PartialEq for Urls
impl Eq for Urls
impl StructuralPartialEq for Urls
Auto Trait Implementations§
impl Freeze for Urls
impl RefUnwindSafe for Urls
impl Send for Urls
impl Sync for Urls
impl Unpin for Urls
impl UnwindSafe for Urls
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.