Struct Organization
pub struct Organization { /* private fields */ }Expand description
Organization primitive.
Implementations§
§impl Organization
impl Organization
pub fn new(name: impl AsRef<str>) -> Result<Organization, SchemaValueError>
pub fn new(name: impl AsRef<str>) -> Result<Organization, SchemaValueError>
pub fn with_url(
self,
url: impl AsRef<str>,
) -> Result<Organization, SchemaValueError>
pub fn with_url( self, url: impl AsRef<str>, ) -> Result<Organization, SchemaValueError>
pub fn with_address(self, address: PostalAddress) -> Organization
pub fn with_address(self, address: PostalAddress) -> Organization
Sets a postal address.
pub const fn schema_type(&self) -> &'static str
pub const fn schema_type(&self) -> &'static str
Returns the schema-like type label.
Trait Implementations§
§impl Clone for Organization
impl Clone for Organization
§fn clone(&self) -> Organization
fn clone(&self) -> Organization
Returns a duplicate 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 more§impl Debug for Organization
impl Debug for Organization
§impl PartialEq for Organization
impl PartialEq for Organization
impl Eq for Organization
impl StructuralPartialEq for Organization
Auto Trait Implementations§
impl Freeze for Organization
impl RefUnwindSafe for Organization
impl Send for Organization
impl Sync for Organization
impl Unpin for Organization
impl UnsafeUnpin for Organization
impl UnwindSafe for Organization
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