Make command struct fields public

They should've been public the entire time, but i forgor
This commit is contained in:
Joscha 2024-12-29 13:58:30 +01:00
parent c8116ea278
commit a73ababe02
2 changed files with 12 additions and 12 deletions

View file

@ -24,9 +24,9 @@ pub fn parse_prefix_initiated<'a>(text: &'a str, prefix: &str) -> Option<(&'a st
}
pub struct Global<C> {
prefix: String,
name: String,
inner: C,
pub prefix: String,
pub name: String,
pub inner: C,
}
impl<C> Global<C> {
@ -69,9 +69,9 @@ where
}
pub struct General<C> {
prefix: String,
name: String,
inner: C,
pub prefix: String,
pub name: String,
pub inner: C,
}
impl<C> General<C> {
@ -121,9 +121,9 @@ where
}
pub struct Specific<C> {
prefix: String,
name: String,
inner: C,
pub prefix: String,
pub name: String,
pub inner: C,
}
impl<C> Specific<C> {

View file

@ -69,8 +69,8 @@ where
}
pub struct Prefixed<C> {
prefix: String,
inner: C,
pub prefix: String,
pub inner: C,
}
impl<C> Prefixed<C> {
@ -122,7 +122,7 @@ where
type Future = Fut;
}
pub struct FromHandler<F>(F);
pub struct FromHandler<F>(pub F);
impl<F> FromHandler<F> {
pub fn new(f: F) -> Self {