pub struct PingType;Implementations§
Source§impl PingType
impl PingType
Sourcepub fn new<A: Into<String>>(
_name: A,
_include_client_id: bool,
_send_if_empty: bool,
_precise_timestamps: bool,
_include_info_sections: bool,
_enabled: bool,
_schedules_pings: Vec<String>,
_reason_codes: Vec<String>,
_follows_collection_enabled: bool,
_uploader_capabilities: Vec<String>,
) -> Self
pub fn new<A: Into<String>>( _name: A, _include_client_id: bool, _send_if_empty: bool, _precise_timestamps: bool, _include_info_sections: bool, _enabled: bool, _schedules_pings: Vec<String>, _reason_codes: Vec<String>, _follows_collection_enabled: bool, _uploader_capabilities: Vec<String>, ) -> Self
Creates a new ping type.
§Arguments
name- The name of the ping.include_client_id- Whether to include the client ID in the assembled ping when.send_if_empty- Whether the ping should be sent empty or not.precise_timestamps- Whether the ping should use precise timestamps for the start and end time.include_info_sections- Whether the ping should include the client/ping_info sections.enabled- Whether or not this ping is enabled. Note: Data that would be sent on a disabled ping will still be collected and is discarded instead of being submitted.schedules_pings- A list of pings which are triggered for submission when this ping is submitted.reason_codes- The valid reason codes for this ping.uploader_capabilities- The capabilities required during this ping’s upload.
pub fn submit(&self, _reason: Option<&str>)
pub fn set_enabled(&self, _enabled: bool)
Auto Trait Implementations§
impl Forget for PingType
impl Freeze for PingType
impl Move for PingType
impl RefUnwindSafe for PingType
impl Send for PingType
impl Sync for PingType
impl Unpin for PingType
impl UnsafeUnpin for PingType
impl UnwindSafe for PingType
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