pub struct GetAudioLinkParams {
pub audio_bit_rate: Option<u16>,
/* private fields */
}
Expand description
Parameters for retrieving an audio file link, including options for controlling the audio bit rate and download behavior.
Fields§
§audio_bit_rate: Option<u16>
Audio bit rate in kilobits per second (from 16 to 320).
Implementations§
Source§impl GetAudioLinkParams
impl GetAudioLinkParams
Sourcepub fn set_audio_bit_rate(&mut self, value: u16)
pub fn set_audio_bit_rate(&mut self, value: u16)
Sets the audio bit rate for the link.
§Arguments
value
- Audio bit rate in kilobits per second (must be between 16 and 320).
Sourcepub fn with_audio_bit_rate(self, value: u16) -> Self
pub fn with_audio_bit_rate(self, value: u16) -> Self
Sets the audio bit rate and returns the updated GetAudioLinkParams
object.
§Arguments
value
- Audio bit rate in kilobits per second (must be between 16 and 320).
Sourcepub fn set_force_download(&mut self, value: bool)
pub fn set_force_download(&mut self, value: bool)
Sets the force_download
flag.
§Arguments
value
- Boolean indicating whether the file should be forced to download.
Sourcepub fn with_force_download(self, value: bool) -> Self
pub fn with_force_download(self, value: bool) -> Self
Sets the force_download
flag and returns the updated GetAudioLinkParams
object.
§Arguments
value
- Boolean indicating whether the file should be forced to download.
Trait Implementations§
Source§impl Debug for GetAudioLinkParams
impl Debug for GetAudioLinkParams
Source§impl Default for GetAudioLinkParams
impl Default for GetAudioLinkParams
Source§fn default() -> GetAudioLinkParams
fn default() -> GetAudioLinkParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetAudioLinkParams
impl RefUnwindSafe for GetAudioLinkParams
impl Send for GetAudioLinkParams
impl Sync for GetAudioLinkParams
impl Unpin for GetAudioLinkParams
impl UnwindSafe for GetAudioLinkParams
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