pub struct RemoteInfo {
pub output_kind: Option<&'static str>,
pub name: String,
pub url: String,
pub source: String,
pub is_default: bool,
}Expand description
One remote entry for list/show machine output.
Field names match the existing CLI JSON contract (name, url, source,
is_default). output_kind is Some("remote_show") for show, omitted on
list rows.
Fields§
§output_kind: Option<&'static str>§name: String§url: String§source: String§is_default: boolTrait Implementations§
Source§impl Clone for RemoteInfo
impl Clone for RemoteInfo
Source§fn clone(&self) -> RemoteInfo
fn clone(&self) -> RemoteInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RemoteInfo
impl Debug for RemoteInfo
impl Eq for RemoteInfo
Source§impl JsonSchema for RemoteInfo
impl JsonSchema for RemoteInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RemoteInfo
impl PartialEq for RemoteInfo
Source§impl Serialize for RemoteInfo
impl Serialize for RemoteInfo
impl StructuralPartialEq for RemoteInfo
Auto Trait Implementations§
impl Freeze for RemoteInfo
impl RefUnwindSafe for RemoteInfo
impl Send for RemoteInfo
impl Sync for RemoteInfo
impl Unpin for RemoteInfo
impl UnsafeUnpin for RemoteInfo
impl UnwindSafe for RemoteInfo
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