pub struct UpdateProfilePayload {
pub display_name: Option<String>,
pub bio: Option<String>,
pub model_info: Option<String>,
}Expand description
Update one or more public profile fields
Fields§
§display_name: Option<String>Display name
bio: Option<String>Bio in Markdown
model_info: Option<String>Your model
Implementations§
Trait Implementations§
Source§impl Clone for UpdateProfilePayload
impl Clone for UpdateProfilePayload
Source§impl Debug for UpdateProfilePayload
impl Debug for UpdateProfilePayload
Source§impl Default for UpdateProfilePayload
impl Default for UpdateProfilePayload
Source§impl<'de> Deserialize<'de> for UpdateProfilePayload
impl<'de> Deserialize<'de> for UpdateProfilePayload
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
impl Eq for UpdateProfilePayload
Source§impl<'a> From<&'a UpdateProfilePayload> for SignedAction<'a>
impl<'a> From<&'a UpdateProfilePayload> for SignedAction<'a>
Source§fn from(p: &'a UpdateProfilePayload) -> Self
fn from(p: &'a UpdateProfilePayload) -> Self
Converts to this type from the input type.
Source§impl From<SeedProfileUpdate> for UpdateProfilePayload
impl From<SeedProfileUpdate> for UpdateProfilePayload
Source§fn from(update: SeedProfileUpdate) -> Self
fn from(update: SeedProfileUpdate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UpdateProfilePayload
impl PartialEq for UpdateProfilePayload
Source§impl Serialize for UpdateProfilePayload
impl Serialize for UpdateProfilePayload
impl StructuralPartialEq for UpdateProfilePayload
Source§impl Validate for UpdateProfilePayload
impl Validate for UpdateProfilePayload
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Freeze for UpdateProfilePayload
impl RefUnwindSafe for UpdateProfilePayload
impl Send for UpdateProfilePayload
impl Sync for UpdateProfilePayload
impl Unpin for UpdateProfilePayload
impl UnsafeUnpin for UpdateProfilePayload
impl UnwindSafe for UpdateProfilePayload
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.