pub struct SegmentsEndpoint { /* private fields */ }Implementations§
Source§impl SegmentsEndpoint
impl SegmentsEndpoint
pub fn new(url: impl Into<String>, token: impl Into<String>) -> Self
pub fn efforts(&self) -> SegmentEffort
pub fn explore(&self) -> ExploreSegments
pub fn starred(&self) -> ListStarredSegments
pub fn get(&self) -> GetSegment
Sourcepub fn star(&self, id: u64, starred: bool) -> StarSegment
pub fn star(&self, id: u64, starred: bool) -> StarSegment
Star or unstar a segment. Pass true to star, false to unstar.
Auto Trait Implementations§
impl Freeze for SegmentsEndpoint
impl RefUnwindSafe for SegmentsEndpoint
impl Send for SegmentsEndpoint
impl Sync for SegmentsEndpoint
impl Unpin for SegmentsEndpoint
impl UnsafeUnpin for SegmentsEndpoint
impl UnwindSafe for SegmentsEndpoint
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