pub struct PingInstance {
pub id: Option<Snowflake>,
pub name: String,
pub description: Option<String>,
pub image: Option<String>,
pub correspondence_email: Option<String>,
pub correspondence_user_id: Option<String>,
pub front_page: Option<String>,
pub tos_page: Option<String>,
}Expand description
GeneralConfiguration as returned from the /api/ping endpoint
Fields§
§id: Option<Snowflake>§name: String§description: Option<String>§image: Option<String>§correspondence_email: Option<String>§correspondence_user_id: Option<String>§front_page: Option<String>§tos_page: Option<String>Implementations§
Source§impl PingInstance
impl PingInstance
Sourcepub fn into_general_configuration(self) -> GeneralConfiguration
pub fn into_general_configuration(self) -> GeneralConfiguration
Converts self into the GeneralConfiguration type
Sourcepub fn from_general_configuration(other: GeneralConfiguration) -> Self
pub fn from_general_configuration(other: GeneralConfiguration) -> Self
Converts the GeneralConfiguration type into self
Trait Implementations§
Source§impl Clone for PingInstance
impl Clone for PingInstance
Source§fn clone(&self) -> PingInstance
fn clone(&self) -> PingInstance
Returns a duplicate 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 PingInstance
impl Debug for PingInstance
Source§impl<'de> Deserialize<'de> for PingInstance
impl<'de> Deserialize<'de> for PingInstance
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 From<GeneralConfiguration> for PingInstance
impl From<GeneralConfiguration> for PingInstance
Source§fn from(value: GeneralConfiguration) -> Self
fn from(value: GeneralConfiguration) -> Self
Converts to this type from the input type.
Source§impl From<PingInstance> for GeneralConfiguration
impl From<PingInstance> for GeneralConfiguration
Source§fn from(value: PingInstance) -> Self
fn from(value: PingInstance) -> Self
Converts to this type from the input type.
Source§impl Hash for PingInstance
impl Hash for PingInstance
Source§impl PartialEq for PingInstance
impl PartialEq for PingInstance
Source§impl Serialize for PingInstance
impl Serialize for PingInstance
impl Eq for PingInstance
impl StructuralPartialEq for PingInstance
Auto Trait Implementations§
impl Freeze for PingInstance
impl RefUnwindSafe for PingInstance
impl Send for PingInstance
impl Sync for PingInstance
impl Unpin for PingInstance
impl UnwindSafe for PingInstance
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§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.