Struct spaceapi::StatusBuilder [−][src]
pub struct StatusBuilder { /* fields omitted */ }
Builder for the Status
object.
Implementations
impl StatusBuilder
[src]
impl StatusBuilder
[src]pub fn new<S: Into<String>>(space_name: S) -> StatusBuilder
[src]
pub fn v0_13<S: Into<String>>(space_name: S) -> StatusBuilder
[src]
pub fn v14<S: Into<String>>(space_name: S) -> StatusBuilder
[src]
pub fn mixed<S: Into<String>>(space_name: S) -> StatusBuilder
[src]
pub fn state(self, state: State) -> Self
[src]
pub fn logo<S: Into<String>>(self, logo: S) -> Self
[src]
pub fn url<S: Into<String>>(self, url: S) -> Self
[src]
pub fn location(self, location: Location) -> Self
[src]
pub fn contact(self, contact: Contact) -> Self
[src]
pub fn spacefed(self, spacefed: Spacefed) -> Self
[src]
pub fn add_event(self, event: Event) -> Self
[src]
pub fn add_cam<S: Into<String>>(self, cam: S) -> Self
[src]
pub fn feeds(self, feeds: Feeds) -> Self
[src]
pub fn add_radio_show(self, radio_show: RadioShow) -> Self
[src]
pub fn add_project<S: Into<String>>(self, project: S) -> Self
[src]
pub fn add_issue_report_channel(
self,
report_channel: IssueReportChannel
) -> Self
[src]
self,
report_channel: IssueReportChannel
) -> Self
pub fn add_extension<V: Into<Value>>(self, name: &str, value: V) -> Self
[src]
pub fn add_extension<V: Into<Value>>(self, name: &str, value: V) -> Self
[src]Add an extension to the Status
object.
The prefix ext_
will automatically be prepended to the name, if not already present.
pub fn build(self) -> Result<Status, String>
[src]
Trait Implementations
impl Clone for StatusBuilder
[src]
impl Clone for StatusBuilder
[src]fn clone(&self) -> StatusBuilder
[src]
fn clone(&self) -> StatusBuilder
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StatusBuilder
[src]
impl Debug for StatusBuilder
[src]impl Default for StatusBuilder
[src]
impl Default for StatusBuilder
[src]fn default() -> StatusBuilder
[src]
fn default() -> StatusBuilder
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StatusBuilder
impl Send for StatusBuilder
impl Sync for StatusBuilder
impl Unpin for StatusBuilder
impl UnwindSafe for StatusBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more