pub struct EditResponse {
pub success: bool,
pub message: Option<String>,
}Expand description
Response from a scrobble edit operation.
This structure contains the result of attempting to edit a scrobble, including success status and any error messages.
§Examples
use lastfm_edit::EditResponse;
let response = EditResponse {
success: true,
message: Some("Track name updated successfully".to_string()),
};
if response.success {
println!("Edit succeeded: {}", response.message.unwrap_or_default());
} else {
eprintln!("Edit failed: {}", response.message.unwrap_or_default());
}Fields§
§success: boolWhether the edit operation was successful
message: Option<String>Optional message describing the result or any errors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditResponse
impl RefUnwindSafe for EditResponse
impl Send for EditResponse
impl Sync for EditResponse
impl Unpin for EditResponse
impl UnwindSafe for EditResponse
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