Struct fidl_fuchsia_pkg_ext::MirrorConfig
source · pub struct MirrorConfig { /* private fields */ }
Expand description
Convenience wrapper for the FIDL MirrorConfig type
Implementations§
source§impl MirrorConfig
impl MirrorConfig
pub fn mirror_url(&self) -> &Uri
pub fn subscribe(&self) -> bool
pub fn blob_mirror_url(&self) -> &Uri
Trait Implementations§
source§impl Clone for MirrorConfig
impl Clone for MirrorConfig
source§fn clone(&self) -> MirrorConfig
fn clone(&self) -> MirrorConfig
Returns a copy of the value. Read more
1.0.0 · 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 MirrorConfig
impl Debug for MirrorConfig
source§impl<'de> Deserialize<'de> for MirrorConfig
impl<'de> Deserialize<'de> for MirrorConfig
Derive blob_mirror_url from mirror_url if blob_mirror_url is not present.
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MirrorConfig> for MirrorConfig
impl From<MirrorConfig> for MirrorConfig
source§fn from(config: MirrorConfig) -> Self
fn from(config: MirrorConfig) -> Self
Converts to this type from the input type.
source§impl From<MirrorConfigBuilder> for MirrorConfig
impl From<MirrorConfigBuilder> for MirrorConfig
source§fn from(builder: MirrorConfigBuilder) -> Self
fn from(builder: MirrorConfigBuilder) -> Self
Converts to this type from the input type.
source§impl Hash for MirrorConfig
impl Hash for MirrorConfig
source§impl PartialEq for MirrorConfig
impl PartialEq for MirrorConfig
source§fn eq(&self, other: &MirrorConfig) -> bool
fn eq(&self, other: &MirrorConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MirrorConfig
impl Serialize for MirrorConfig
Omit empty optional fields and omit blob_mirror_url if derivable from mirror_url.
source§impl TryFrom<MirrorConfig> for MirrorConfig
impl TryFrom<MirrorConfig> for MirrorConfig
§type Error = RepositoryParseError
type Error = RepositoryParseError
The type returned in the event of a conversion error.
source§fn try_from(other: MirrorConfig) -> Result<Self, RepositoryParseError>
fn try_from(other: MirrorConfig) -> Result<Self, RepositoryParseError>
Performs the conversion.
impl Eq for MirrorConfig
impl StructuralPartialEq for MirrorConfig
Auto Trait Implementations§
impl !Freeze for MirrorConfig
impl RefUnwindSafe for MirrorConfig
impl Send for MirrorConfig
impl Sync for MirrorConfig
impl Unpin for MirrorConfig
impl UnwindSafe for MirrorConfig
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